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