* * * _ _ _ _ * * * how to print this pattern in c programming
Answers
Answered by
0
Answer:
even the most important thing for me to do
Answered by
0
Answer:
The above code will print this pattern:
Explanation:
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
{
printf("* ");
for (j = 1; j <= i; ++j) {
printf("_ ");
}
printf("\n");
}
return 0;
}
Similar questions
Math,
3 months ago
English,
3 months ago
English,
3 months ago
Biology,
6 months ago
Computer Science,
11 months ago