Skip to main content

FEATURED POST

Why the World is Running Out of Computers

PATTERN 4

 /* 

12345

1234

123

12

1    */


#include<stdio.h>

int main()

{

int n;

scanf("%d", &n);

for(int i=n; i>=1; i--)

{

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

{

printf("%d", j);

}printf("\n");

}

return 0;

}



Comments