C++ If-else

tutorial and example
tutorial and example

C++ if else Control Statement

An if else control statement in C++ is used to control the program flow in two way direction. When condition returns true value then program executes if condition block otherwise program executes elseblock.

Syntax:

C++ if else Example

Output: