patternprogram_134 softethics

Pattern 134

C

#include <stdio.h>
#include <conio.h>
int main()
{
  int i,j,k;

  for(i=5; i>=1; i--)
  {
    for(k=4; k>=i; k--)
    {
      printf(" ");
    }
    for(j=i; j>=1; j--)
    {
      printf("%d ",i);
    }
    printf("\n");
  }
  return 0;
}

C++

Java

C#

Python

Tutorial (YouTube)

0 0 votes
Rate this Program
Subscribe
Notify of
guest


0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments