U E D R , A S I H C RSS

최소정수의합/김정현

소 감



코 드

~cpp 
//자바
public class AtleastSum
{
  public static void main(String args[])
  {
  
    int n=0;
    int sum=0;
    while(sum<3000)
    {
     n++;
     sum+=n;    
    }
    System.out.println("n= "+n+"  sum = "+sum);
  }
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:17
Processing time 0.0097 sec