Can we pass floating point in a Switch case ..? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we pass floating point in a Switch case ..?

how.?

28th Sep 2017, 9:23 AM
Pema Gyalpo
Pema Gyalpo - avatar
2 Answers
+ 9
@Pema : You didn't add the language in your post tags, you'll get more help by doing so.
28th Sep 2017, 9:32 AM
Dev
Dev - avatar
+ 1
case (2.5 * 10)/10: I think so.
28th Sep 2017, 9:25 AM
Trưởng Nguyễn
Trưởng Nguyễn - avatar