+ 1

Can we perform some operation in 'if statement ' or is it used only for decision making!!

4th Jun 2017, 5:30 PM
Sachin s
Sachin s - avatar
3 ответов
+ 6
It only serves to execute instructions if a certain condition is true
4th Jun 2017, 5:36 PM
Umbe
Umbe - avatar
0
You use the If statement for conditional programming. So you decide what to do when to do it. Depending on the conditions​you setup.
4th Jun 2017, 5:40 PM
🇺🇸 Anatoli🇧🇪🇪🇺 ,
🇺🇸 Anatoli🇧🇪🇪🇺 , - avatar
0
Overall programming will always have to deal with conditional coding, how else are you going to make decisions. However instead of using a lot of if and else statement you code will be faster if you use switch case systems but if else if loops are certainly ok. Don't worry it is the experience and the kind of program that decides the way you go...
4th Jun 2017, 8:28 PM
🇺🇸 Anatoli🇧🇪🇪🇺 ,
🇺🇸 Anatoli🇧🇪🇪🇺 , - avatar