Geography, asked by sree3328, 1 year ago

write a program to print the pattern
2
3*4
5*6*7

Answers

Answered by Anonymous
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 Anonymous
3

\huge\mathcal{Answer:}

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