2
1
Fork 0
pr3-ws202526/go/01-basics/calculator.go

23 lines
341 B
Go

package main
import (
"fmt"
)
func main() {
//TODO: implement according to README.md
//the following code just demonstrates how to use fmt.Scan
var str string
fmt.Print("Please enter a string: ")
fmt.Scan(&str)
var x float64
fmt.Print("Please enter a float: ")
fmt.Scan(&x)
fmt.Printf("You entered '%s' and %f\n", str, x)
}