U E D R , A S I H C RSS

이태균/LittleAOI/최소정수의합

No difference found



소 감



코 드


package main

import "fmt"

func main() {
	sum :=0
	n :=0
	for{
		n++
		sum +=n
		if sum >=3000{
			fmt.Printf("n = %d, sum = %d",n,sum)
			return
		}
	}
}


Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:34
Processing time 0.0392 sec