Friday, 27 March 2015

Triangle Shape-1



#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=0;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