patternprogram_176 softethics

Pattern 176

C

#include<stdio.h>

#include<math.h>
int main()
{
  int size=3;  //limit
  int i,j;

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

C++

Java

C#

Python

Tutorial (YouTube)

5 1 vote
Rate this Program
Subscribe
Notify of
guest


0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments