Can we pass floating point in a Switch case ..? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

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

how.?

28th Sep 2017, 9:23 AM
Pema Gyalpo
Pema Gyalpo - avatar
2 Réponses
+ 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