Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

별표출력/하나조: Difference between revisions

From ZeroWiki
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;
}

윤보라

조하나