vasco-da-gama
C IS AS DEEP AS SEA
Wednesday, 5 October 2011
to print * from 1 to 5 in a row using while loop
#include<stdio.h>
#include<conio.h>
main()
{
int i,j;
i=1;
while(i<=5)
{
printf("\n");
i++;
j=1;
while(j<=5)
{
printf("*");
j++;
}
}
getch();
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment