U E D R , A S I H C RSS

별표출력/하나조

두번째 숙제 별표출력

형식

~cpp
*
**
***
****
*****
힌트:중첩 for문 사용.

이유림

~cpp
#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;
}



윤보라

~cpp


조하나

~cpp

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:36
Processing time 0.0148 sec