0

Sound Frequencies Golang

package main import "fmt" func main() { var f int fmt.Scanln(&f) if f >= 20 && f <= 20000 { fmt.Println("Audible") }else if f > 20000 { fmt.Println("Ultrasound") }else if f >= 0 && f < 20 { fmt.Println("Infrasound") }else { fmt.Println("Wrong Input") } //your code goes here }

28th Sep 2022, 9:13 AM
Ridho Reynaldo
Ridho Reynaldo - avatar
2 Respostas
+ 1
What is your question?
28th Sep 2022, 1:10 PM
Lisa
Lisa - avatar
0
May be you wanna tell about the different range of waves from 0 to 20000 from user prespective but you actually wanna ask can,t understand althought u dont put () in your condition which may be show error
28th Sep 2022, 1:45 PM
faheem amjad
faheem amjad - avatar