Friday, 27 March 2015

Triangle Shape-3



#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(" ");
  }
     for(int k=0;k<=i;k++)
  {
   printf("*");
  }
  printf("\n");
 }
 return 0;
}

0 comments:

Post a Comment

 

Subscribe to our Newsletter

Contact our Support

Through the contact form

Our Team Memebers