package main import "fmt" func main() { var i int sum := 0 fmt.Scan(&i) //fmt.Println(i) for c := 0; c <= i; c++ { // fmt.Println(sum) sum += c } fmt.Println(sum) }