// C program to print right half pyramid pattern of star
#include <stdio.h>
int main()
{
int rows = 5;
// first loop for printing rows
for (int i = 0; i < rows; i++) {
// second loop for printing character in each rows
for (int j = 0; j <= i; j++) {
printf(“* “);
}
printf(“\n”);
}
return 0;
}
Pavatharni . S Asked question June 6, 2023
