== 코딩!! ==

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

  do{
	  n++;
	  s=s+n;

	}while(s<=3000);

	printf("n=%d  and, total sum=%d\n",n,s);
	}

Retrieved from http://wiki.zeropage.org/wiki.php/최소정수의합/김대순
last modified 2021-02-07 05:31:16