forked from steger/pr3-ws202526
23 lines
341 B
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)
|
|
}
|