Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int a, b, c, d, e;
- scanf("%d%d%d%d%d", &a, &b, &c, &d, &e);
- int prosek = (a + b + c + d + e) / 5;
- if(prosek < 51) {
- printf("NEDOVOLEN\n");
- }
- else if(prosek >= 51 && prosek < 60) {
- printf("DOVOLEN\n");
- }
- else if(prosek >= 60 && prosek < 70) {
- printf("DOBAR\n");
- }
- else if(prosek >= 70 && prosek < 80) {
- printf("MNOGU DOBAR\n");
- }
- else if(prosek >= 80 && prosek < 90) {
- printf("ODLICEN\n");
- }
- else {
- printf("LEGENDARNO\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement