I am having an error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am having an error?

when I use switch statement in a float main.......it keeps on saying that switch is not an integer......why is it soo

10th Oct 2016, 4:40 PM
Reshail Muzammil
Reshail Muzammil - avatar
3 Answers
0
show as the Code. it's probably that you declare bad de swich statement
10th Oct 2016, 5:19 PM
David Viadas
David Viadas - avatar
0
probably switch case do not except float value
17th Oct 2016, 6:41 AM
gurinder sandhu
gurinder sandhu - avatar
0
use void main. It may help
23rd Nov 2016, 3:05 PM
Junaid