JHJiban

Spring 2021 CGPA

May 2nd, 2021 (edited)
1,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. //Jiban
  2. //Timepass
  3.  
  4. #include<stdio.h>
  5.  
  6. int main() {
  7. float mes,mesl,oop,oopl,nm,mcs,sp,total=0;
  8. printf("MES-IoT Theory: ");
  9. scanf("%f",&mes);
  10. printf("\nMES-IoT Lab: ");
  11. scanf("%f",&mesl);
  12. printf("\nOOP-II Theory: ");
  13. scanf("%f",&oop);
  14. printf("\nOOP-II Lab: ");
  15. scanf("%f",&oopl);
  16. printf("\nNumerical Method: ");
  17. scanf("%f",&nm);
  18. printf("\nMath for Computer Science: ");
  19. scanf("%f",&mcs);
  20. printf("\nSoftware Project IV: ");
  21. scanf("%f",&sp);
  22.  
  23. total=(mes+(mesl*2)+oop+(oopl*2)+(nm*3)+(mcs*2)+sp);
  24. printf("\nYour Spring 2021 CGPA is: %.2f\n",total/12);
  25.  
  26.  
  27.  
  28.  
  29. return 0;
  30. }
  31.  
Add Comment
Please, Sign In to add comment