patternprogram_170 softethics

Pattern 170

C

#include<stdio.h>

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

  for(i=size; i>=-size; i--)
  {
    for(j=size; j>=abs(i); j--)
    {
      printf("*");
    }
    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