C++ Online Compiler
Example: C++ program of decision making by using if statement
C
C++
C#
Java
Python
PHP
main.cpp
STDIN
Run
// C++ program of decision making by using if statement #include <iostream> using namespace std; int main() { int n; cout << "Enter an integer value::\n"; cin >> n; // true if number is less than 6 if (n < 6) { cout << "Condition is true.\n"; } return 0; }
5
Output
Clear
ADVERTISEMENTS