Write a program to print the star triangle

Write a program to print the star triangle

program:


#include<stdio.h>

int main()

{

int i,j;

for(i=0;i<5;i++){

for(j=0;j<=i ;i++)

{

printf("*");

}

printf("n");

}

}


output:

*

**

***

****

*****

Read More →
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!