0
getting error in case 2 and 3
package main import "fmt" func main() { if temp := 99.5; temp <= 99.5 { fmt.Println("Allowed") } else { fmt.Println("Fever") } }
4 odpowiedzi
+ 8
Try this then
var temp float64
fmt.Scanln(&temp)
+ 7
Your code needs to take the temp as input
var temp int
fmt.Scanln(&temp)
+ 1
Thanks
0
But question says ' Float'