SHARE
TWEET

Grade

TaniaTanni Oct 23rd, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top