+ 1

How can we make a program to add sub and divide in a single program?

30th Apr 2018, 4:34 PM
Lovenish Purohit
Lovenish Purohit - avatar
17 Réponses
+ 3
you can use switch for various operation
30th Apr 2018, 4:40 PM
Mohammad Ismail
Mohammad Ismail - avatar
+ 3
statement
30th Apr 2018, 4:42 PM
Mohammad Ismail
Mohammad Ismail - avatar
30th Apr 2018, 4:48 PM
Mohammad Ismail
Mohammad Ismail - avatar
+ 3
switch is used for multiple conditions. Here is a link for c++ switch statements. https://www.sololearn.com/learn/CPlusPlus/1618/
30th Apr 2018, 4:56 PM
Mohammad Ismail
Mohammad Ismail - avatar
+ 3
The switch is really cool
30th Apr 2018, 5:02 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 3
A simple program for all operation . you can also implement with switch, method etc https://code.sololearn.com/ck6O3VHl09R8/?ref=app
30th Apr 2018, 5:33 PM
Mohammad Ismail
Mohammad Ismail - avatar
+ 2
how ?
30th Apr 2018, 4:38 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 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.
30th Apr 2018, 4:40 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
switch ?
30th Apr 2018, 4:41 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
it's a tag ?
30th Apr 2018, 4:41 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
🤔🤔🤔
30th Apr 2018, 4:42 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
how it works ?
30th Apr 2018, 4:42 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
bro the switch is a tag of Java .it is possible to use it on c++ ?
30th Apr 2018, 4:49 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
ok
30th Apr 2018, 4:51 PM
Lovenish Purohit
Lovenish Purohit - avatar
+ 2
Yes, almost every programming languages support switch.
30th Apr 2018, 4:51 PM
Mohammad Ismail
Mohammad Ismail - avatar
+ 1
Yes, of course!
30th Apr 2018, 4:37 PM
Zeke Williams
Zeke Williams - avatar
+ 1
switch is used in c++ as well. Just finish the c++ class course
30th Apr 2018, 4:50 PM
Zeke Williams
Zeke Williams - avatar