Tuesday, April 8, 2014

RIGHT ANGLED TRIANGLE OF STARS

Program to print Right Angled Triangle of Stars

*
**
***
****
*****

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


for(j=0;j<i;j++)
{
printf("*");
}
printf("
");
}

Related Post:

0 comments:

Post a Comment

 
Copyright 2009 Information Blog
Powered By Blogger