write a program to print the pattern
2
3*4
5*6*7
Answers
Answered by
1
#include <stdio.h>
int main()
{
int i, j, rows;
printf("Enter number of rows: ");
scanf("%d",&rows);
for(i=1; i<=rows; ++i)
{
for(j=1; j<=i; ++j)
{
printf("* ");
}
printf("\n");
}
return 0;
Answered by
3
Input : 4
Output :
1*2*3*4*17*18*19*20
5*6*7*14*15*16
8*9*12*13
10*11
Input : 2
Output :
1*2*5*6
3*4
Similar questions
Social Sciences,
7 months ago
CBSE BOARD X,
7 months ago
Math,
1 year ago
Science,
1 year ago
Math,
1 year ago
Science,
1 year ago