U E D R , A S I H C RSS

최소정수의합/임다찬

~cpp
#include <stdio.h>
int main(void){
	int sum=0;
	int n=0;

	while(sum<=3000){
		n++;
		sum+=n;
	}
	printf("n = %d ,sum = %d\n",n,sum);

	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:17
Processing time 0.0118 sec