patternprogram_80 softethics

Pattern 80

C

#include<stdio.h>

void main()
{

  int n=10;// size

  int i,j,k;

  for(i=n; i>=1; i--)
  {
    k = i;

    for(j=1; j<=i; j++)
    {
      printf("%2d ",k);
      k=k+(n-j);
    }
    printf("\n");
  }

}

C++

Java

C#

Python

0 0 votes
Rate this Program
Subscribe
Notify of
guest


0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments