Friday 27 March 2015

Triangle shape-2



#include<stdio.h>
int main()
{
 int n;
 printf("Enter your number :  ");
 scanf("%d",&n);
 printf("\n");

 for(int i=0;i<n;i++)
 {
  for(int j=n;j>i;j--)
  {
   printf("*");
  }
  printf("\n");
 }
 printf("\n");
 return 0;
}

0 comments:

Post a Comment

 

Subscribe to our Newsletter

Contact our Support

Through the contact form

Our Team Memebers