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 }
2 Respostas
+ 1
What is your question?
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