How to use the if-then-else statement?
if-then-else control flow statement adds a secondary path to the if statement when the expression evaluates to
false. When it evaluates to
else block will be executed.
Below is the program that takes input of user test score and evaluates the score to get the corresponding grade.
When the program executed you'll need to input the test score and the program will give you the grade.
Please enter your score: 75
Grade = C