2018-10-13 23:30:21 +03:00
|
|
|
// For more tutorials: https://blog.learngoprogramming.com
|
|
|
|
//
|
|
|
|
// Copyright © 2018 Inanc Gumus
|
|
|
|
// Learn Go Programming Course
|
|
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
|
|
//
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
// ---------------------------------------------------------
|
2018-10-30 22:38:26 +03:00
|
|
|
// EXERCISE: Sum the Numbers
|
2018-10-13 23:30:21 +03:00
|
|
|
//
|
|
|
|
// 1. By using a loop, sum the numbers between 1 and 10.
|
|
|
|
// 2. Print the sum.
|
|
|
|
//
|
|
|
|
// EXPECTED OUTPUT
|
|
|
|
// Sum: 55
|
|
|
|
// ---------------------------------------------------------
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
}
|