Write the correct data type for the number variable to read a decimal number.
Primitive types
Correct type
Report a typo
Sample Input 1:
1.1Sample Output 1:
1.1Write a program in Go
package main
import "fmt"
func main() {
var number ?
fmt.Scan(&number)
fmt.Println(number)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.