Write a program that should ask the user to input his/her percentage. Then, it should

tell the grade according to his/her percentage. Details/rules of the grades are given

below:

Percentage Grade

90 (or more) A1

80 to 89 A

70 to 79 B

60 to 69 C

Less than 60 F

#include <iostream>

using namespace std;

int main()
{
float percentage;
cout<<"Please enter your percentage : ";
cin>>percentage;
if (percentage > 100)
{
cout<<"Please Enter A Valid Input";
}
else if (percentage >= 90)
{
cout<<"A1";
}
else if (percentage >= 80)
{
cout<<"A";
}
else if (percentage >= 70)
{
cout<<"B";
}
else if (percentage >= 60)
{
cout<<"C";
}
else if (percentage >= 50)
{
cout<<"F";
}
return 0;
}