Headlines
Loading...
C Program to print the asterisk graph

C Program to print the asterisk graph

C Program to print the asterisk graph 

#include<stdio .h="">
#include<conio .h="">
void main()
{
int i,j,rows;
clrscr();
printf("\n Enter No of Rows:");
scanf("%d",&amp;rows);
printf("\n");
for(i=1;i&lt;=rows;i++)
    {
       for(j=1;j&lt;=i;j++)
 {
  printf(" *");

 }
        printf("\n");
      }
getch();
}

*************OUTPUT***************

 Enter No of Rows: 4

 *
 * *
 * * *
 * * * *</conio></stdio>
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***