add: numbers and strings exercises
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
// 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
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
width, height := 10, 2
|
||||
|
||||
width++
|
||||
width += height
|
||||
width--
|
||||
width -= height
|
||||
width *= 20
|
||||
width /= 25
|
||||
width %= 5
|
||||
|
||||
fmt.Println(width)
|
||||
}
|
Reference in New Issue
Block a user