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