Pattern code in c language
Answers
Answered by
0
Answer:
int main() { int row, c, n;
printf("Enter the number of rows in pyramid of stars to print\n"); scanf("%d", &n);
for (row = 1; row <= n; row++) // Loop to print rows. { ...
for (c = 1; c <= 2*row - 1; c++) // Loop to print stars in a row. printf("*");
printf("\n"); }
Explanation:
plz mark me as brainlist and follow me...
Similar questions