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