(a)
if(x > 0.0) function1(); else function2();
(b)
if(x <= 0.0) function2(); else function1();
Example 2: Handling relational operations.
Back to Article