[창의력 Test]
<프로그램을 분석합니다.>


<문제>다음 프로그램을 분석하여 정답을 입력하시오!!


n= <- n 값을 입력하시오!

[input]

n= [init]

<프로그램>

#include int main() { 01 int n, i; 02 03 scanf("%d",&n); 04 for(i=1; i<=n; i++){ 05 printf("i=%d, %d나머지%d = %d=> ",i, n, i, n%i); 06 if(n%i == 0) 07 printf("O"); else printf("X"); 08 } 09 printf("\n"); 10 11 return 0; }


[php 소스]

	for($i=1; $i<=$c; $i++){
		if($c % $i == 0) printf("%d ", $i);
	}
	printf("<br> </h2>");