Use of bool variable

Write a program to demonstrate the use of the bool variable.

#include<iostream>
using namespace std;
bool Get_Status();
int main()
{
	if(true == Get_Status())
	{
		cout << "Success" << endl;
	}
	else
	{
		cout << "Failed..." << endl;
	}
	return 0;
}
bool Get_Status()
{
	int x  = 10;
	if(x == 10)
		return true;
	else
		return false;
}

Output

Success