More actions
imported>Unknown No edit summary |
(Repair batch-0005 pages from live compare) |
||
| Line 30: | Line 30: | ||
== 조하나 == | == 조하나 == | ||
Latest revision as of 00:44, 27 March 2026
두번째 숙제 별표출력
형식
* ** *** **** ***** 힌트:중첩 for문 사용.
이유림
#include <stdio.h>
void main(void)
{
char star='*';
int x,y;
for(x=1;x<=5;x++){
for(y=1;y<=x;y++){
printf("%c",star);
}
printf("\n");
}
return 0;
}