boost learn study
Friday, March 28, 2014
Nested for loop statement
/*Write a Program to print the below output using nested for loop * ** *** **** ***** */ #include< stdio.h >#include< conio.h >void main() { int r,c; clrscr(); for(r=1;r<=5;r++) { for(c=1;c<=r;c++) { printf("*"); } printf("\n"); } getch(); }
Output is as :
*
**
***
****
*****
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment