- #1
Peach
- 80
- 0
I'm new to programming and learning the switch statements right now. I'm wondering if you can add/subtract/multiply/divide equations in the switch statements.
Example: y = x^6/6
And if I want that in case 1, how do I calculate y assuming I already have x input beforehand?
Example: y = x^6/6
And if I want that in case 1, how do I calculate y assuming I already have x input beforehand?