Write a C++ program to check whether a given number is greater than or equal to 63.
Answers
Answered by
7
Question:-
Write a C++ program to check whether a given number is greater than or equal to 63.
Program:-
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
cout <<"Enter an integer number: ";
int n;
cin >> n;
if(n>=63)
cout <<" Number is greater than or equal to 63.";
else
cout <<"Number is less than 63.";
getch();
return 0;
}
Answered by
28
Question :
To write c++ program to check whether the given no. is greater than or equal to 63.
Answer :
- Syntax of if else statement.
Required C++ Program :
#include <iostream>
Using namespace std;
int main ( )
{
int num ;
cout<<"\n enter a number";
cin>>num;
if (num>=63)
{
cout <<"\n Number is greater than 63" ;
}
Cout<<"\n Number is equal to 63" ;
}
return 0;
Output :
Enter a number 76
76 is greater than 63.
Similar questions