Problem1541--C Programming Practicals 3 logical if else-1

1541: C Programming Practicals 3 logical if else-1

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 837  Solved: 333
[Submit] [Status] [Web Board] [Creator:]

Description

Write a simple program that allows the user to type in a mark (use fgets and atoi) and then prints the grade using the if-else statements. mark >= 70:1st class mark >= 60:2:1 class mark >= 50:2:2 class mark >= 40:3rd class otherwise:fail

Input

Enter the mark 20

Output

The mark is 20, it is fail

Sample Input Copy

60

Sample Output Copy

The mark is 60, it is 2:1 class

Source/Category

110