Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double num,GPA;
- printf ("Enter Number : ");
- scanf("%lf",&num);
- if(num>=80 && num<=100)
- printf("CGPA = 4.00\n");
- else if(num>=75 && num<=79)
- printf("GPA=3.75");
- else if(num>=70 && num<=74)
- printf("GPA=3.50");
- else if(num>=65 && num<=69)
- printf("GPA=3.25");
- else if(num>=60 && num<=64)
- printf("GPA=3.00");
- else if(num>=55 && num<=59)
- printf("GPA=2.75");
- else if(num>=50 && num<=54)
- printf("GPA=2.50");
- else if(num>=45 && num<=49)
- printf("GPA=2.25");
- else if(num>=40 && num<=44)
- printf("GPA=2.00");
- else
- printf("Fail");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement