Code:#include<stdio.h> main() { int n, c, k, space; printf("Enter the number of rows: "); scanf("%d", &n); space=n; for(k=n;k>=1;k--) {for(c=1; c<=space; c++) printf(" "); space++; for(c=1; c<=k; c++) printf("%d",k); printf("\n"); } return 0; }
sss4
ss34
s234
1234
s for space....
can any one help me??