Posts by user140943 • 46 points
1 post
-
3
votes1
answer32
viewsA: Receive the numeric keys to make some functions equal for all of them on the switch in a calculator
The purpose of using a switch instead of if/Else is that the switch creates a hashtable and finds the result by association. Even if it was possible to declare a function on the switch, there would…