U E D R , A S I H C RSS

최소정수의합/이재경

~cpp
#include <stdio.h> 

main() 
{ 
	int n,sum;
	sum=0;
	n=1;

	while (sum<=3000)
	{
		sum=sum+n;
		n=n+1;
	}	
printf("n=%d,sum%d\n",n,sum);
	
	
} 
 
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 32.3610 sec