Correct type

Report a typo

Write the correct data type for the number variable to read a decimal number.

Sample Input 1:

1.1

Sample Output 1:

1.1
Write a program in Go
package main

import "fmt"

func main() {
var number ?

fmt.Scan(&number)
fmt.Println(number)
}
___

Create a free account to access the full topic