Embed presentation
Downloaded 86 times










This document discusses if and if-else statements in C++. It provides the syntax for if statements, which execute code if a test expression is true. If the expression is false, the code is skipped. It also covers if-else statements, which allow specifying different code blocks to execute depending on whether the test expression is true or false. Examples are given of programs using if and if-else statements to check if a user-input integer is positive or negative.









