Home C 55. Pattern 8 55. Pattern 8 / August 03, 2017 5 4 4 3 3 3 2 2 2 2 1 1 1 1 1 Code: #include<stdio.h> int main() { int n,i,j,k=1,a; scanf("%d",&n); a=n; for(i=0;i<n;i++) { for(j=1;j<=k;j++) printf("%d ",a); k++; a--; printf("\n"); } return 0; }
No comments