Computer Science, asked by ayushsaini54791, 9 months ago

write a program to print the following patrern :-

1
2 2
3 3 3
4 4 4 4​

Answers

Answered by mojammilhusain45
0

Answer:

#include<stdio.h>

int main()

{

int n=4, i, j;

for(i=1; i<=n; i++)

   {

       for(j=1;  j<=i; j++)

       {

           printf("%d ",i);

       }

       printf("\n");

   }

}

Explanation:

I hope u will find your pattern program in c.

Similar questions