Advertisement
TaniaTanni

Grade

Oct 23rd, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. double m;
  5. scanf ("%lf",&m);
  6. if(m>80&&m<=100)
  7. {
  8. printf ("Grade is 4.00/n");
  9. }
  10. else if (m>=75&&m<=79)
  11. {
  12. printf ("Grade is 3.50/n");
  13. }
  14. else if (m>=70&&m<=75)
  15. {
  16. printf ("Grade is 3.00/n");
  17. }
  18. else if (m>=65&&m<=69)
  19. {
  20. printf ("Grade is 2.50/n");
  21. }
  22. else if (m>=60&&m<=64)
  23. {
  24. printf ("Grade is 2.00/n");
  25. }
  26. else
  27. {
  28. printf ("Grade is fail");
  29. }
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement