Advertisement
Josif_tepe

Untitled

Mar 13th, 2024
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int a, b, c, d, e;
  5.     scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
  6.  
  7.     int prosek = (a + b + c + d + e) / 5;
  8.     if(prosek < 51) {
  9.         printf("NEDOVOLEN\n");
  10.     }
  11.     else if(prosek >= 51 && prosek < 60) {
  12.         printf("DOVOLEN\n");
  13.     }
  14.     else if(prosek >= 60 && prosek < 70) {
  15.         printf("DOBAR\n");
  16.     }
  17.     else if(prosek >= 70 && prosek < 80) {
  18.         printf("MNOGU DOBAR\n");
  19.     }
  20.     else if(prosek >= 80 && prosek < 90) {
  21.         printf("ODLICEN\n");
  22.     }
  23.     else {
  24.         printf("LEGENDARNO\n");
  25.     }
  26.     return 0;
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement