Computer Science, asked by thanisha00, 7 months ago

Write a C++ program to check whether a given number is greater than or equal to 63.​

Answers

Answered by anindyaadhikari13
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 Berseria
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.

\sf \: if(text \: expression ) \\ { \\ \sf \: statement \: block \: 1 \\ }else \\ { \\ statement \: block \: 2 \:  \\ }

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