53. Pattern 6

Image result for c programming

5
4 5
3 4 5
2 3 4 5
1 2 3 4 5
code:
  #include<stdio.h>
int main(){
  int n,i,j;
  scanf("%d",&n);
  for(i=n;i>=1;i--)
  {
    for(j=i;j<=n;j++){
      printf("%d ",j);
 
    }
    printf("\n");
  }
  return 0;
}

No comments