patternprogram_137 softethics

Pattern 137

C

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

  for(i=4; i>=0; i--)
  {
    for(k=3; k>=i; k--)
    {
      printf(" ");
    }
    for(j=i; j>=0; j--)
    {
      printf("%c ",j+65); // 65 is ASCII of 'A'
    }
    printf("\n");
  }
  return 0;
}

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
reCaptcha Error: grecaptcha is not defined