Following are the Program to check the input value:
Program Explanation:
- Defining the header file.
- Defining a main method.
- Inside the method a float variable "num" is declared that inputs the value.
- After input the value a conditional statement is defined num value greater than equal to 90, if its true it will print the message "Great!
".
Program:
#include <iostream>//header file
using namespace std;
int main()//main method
{
float num;//defining a variable
cout<<"Enter a Number:";//print message
cin>>num;//input value
if(num>= 90)//defining if block that checks num value greater than equal to 90
{
cout<<"Great!";//print message
}
return 0;
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/14267584