Salam and Hi!This is my programme regarding to the star triangle :
# include <stdio.h>
#include <stdlib.h>
int main ( void )
{
int row=0;
int size = 5;
while(row<size)
{
int star=0;
while(star<row)
{
printf("*");
star++;
}
printf("\n");
row++;
}
system("PAUSE");
return 0;
}
No comments:
Post a Comment