Doubt in my program

Here is my code. Now, will there be any change in my output if I replace else if and else by if ?

if you use “if” in case of “else if” or “else”
then all conditions will be executed
but in this case there will be no effect in output

Ok so there will be no difference in this case but will there be any difference in the optimization of program or the speed of build and run time.

yes there will be difference in execution time
but that difference in not significant

1 Like

Ok. Thanks for clearing my doubt. :slightly_smiling_face: