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
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
// ---------------------------------------------------------
|
2018-10-27 17:15:23 +03:00
|
|
|
// EXERCISE: Fix the Float
|
|
|
|
//
|
2018-10-13 23:30:21 +03:00
|
|
|
// Fix the program to print 2.5 instead of 2
|
|
|
|
//
|
|
|
|
// EXPECTED OUTPUT
|
|
|
|
// 2.5
|
|
|
|
// ---------------------------------------------------------
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
x := 5 / 2
|
|
|
|
fmt.Println(x)
|
|
|
|
}
|