+ 1
Can we perform some operation in 'if statement ' or is it used only for decision making!!
3 odpowiedzi
+ 6
It only serves to execute instructions if a certain condition is true
0
You use the If statement for conditional programming. So you decide what to do when to do it. Depending on the conditionsyou setup.
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...