#include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr(); for(i=1;i<=5;i++) { for(k=1;k<10-i;k++) printf(" "); for(j=1;j<=i;j++) printf("*"); printf("\n"); } getch(); } |
Tuesday 23 August 2016
Program 28 (Format 28) Using nested for loop
Posted by computersadda on 18:46:00 in Nested for Loop C-Programs (28 formats) | Comments : 0
Subscribe to:
Post Comments
(
Atom
)
Post a Comment