+ 1
How can we make a program to add sub and divide in a single program?
17 Réponses
+ 3
you can use switch for various operation
+ 3
statement
+ 3
switch is used for multiple conditions. Here is a link for c++ switch statements.
https://www.sololearn.com/learn/CPlusPlus/1618/
+ 3
The switch is really cool
+ 3
A simple program for all operation . you can also implement with switch, method etc
https://code.sololearn.com/ck6O3VHl09R8/?ref=app
+ 2
how ?
+ 2
I have made a program for adding two numbers and I also can make it for subtracting or divide but they all are in individual code if I want to divide two numbers then I need to go to other code I want that I add,sub, divide,multiply in a single code.
+ 2
switch ?
+ 2
it's a tag ?
+ 2
🤔🤔🤔
+ 2
how it works ?
+ 2
bro the switch is a tag of Java .it is possible to use it on c++ ?
+ 2
ok
+ 2
Yes, almost every programming languages support switch.
+ 1
Yes, of course!
+ 1
switch is used in c++ as well. Just finish the c++ class course