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

별표출력/하나조

From ZeroWiki
Revision as of 05:29, 7 February 2021 by imported>Unknown
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

두번째 숙제 별표출력

형식

*
**
***
****
*****
힌트:중첩 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;
}

윤보라

조하나