Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var n, number int
- fmt.Scanln(&n)
- var sum = 0
- for i := 0; i < n; i++ {
- fmt.Scanln(&number)
- sum += number
- }
- fmt.Println(sum)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement