Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- float m;
- printf("enter the marks");
- scanf("%f",&m);
- if(m>=80&&m<=100)
- {
- printf("the grade is A+");
- }
- else if(m>=70&&m<=79)
- {
- printf("the grade is A");
- }
- else if(m>=60&&m>=69)
- {
- printf("the grade is A-");
- }
- else if(m>=50&&m<=59)
- {
- printf("the grade is B");
- }
- else if(m>=40&&m<=49)
- {
- printf("the grade is C");
- }
- else
- {
- printf("the grade is fail");
- }
- //main();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement