Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int m;
- printf("Enter the marks:");
- scanf("%d",&m);
- if((m>=80)&&(m<=100))
- {
- printf("Get A+",m);
- }
- else if ((m>=75)&&(m<=79))
- {
- printf("Get A",m);
- }
- else if((m>=70)&&(m<=74))
- {
- printf("Get A-",m);
- }
- else if((m>=65)&&(m<=69))
- {
- printf("Get B+",m);
- }
- else if((m>=60)&&(m<=64))
- {
- printf("Get B",m);
- }
- else if ((m>=55)&&(m<=59))
- {
- printf("Get B-",m);
- }
- else if ((m>=50)&&(m<=54))
- {
- printf("Get C+",m);
- }
- else if((m>=45)&&(m<=49))
- {
- printf("Get C",m);
- }
- else if((m>=40)&&(m<=44))
- {
- printf("Get D",m);
- }
- else
- {
- printf("fail ",m);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment