C++: Decisions

Example: If statement in C++


	#include 
	using namespace std;
	 
	int main()
	{
		int x;
		cout << "Enter an integer: ";
		cin >> x;
		if (x==100)
		{
		  cout << "Correct";
		}
		else
		{
		  cout << "Incorrect";
		}
	 
		return 0;
	}
	

Output:

  Enter a an integer: 100
  Correct