Answer to Question #247123 in C for Madjoker

Question #247123
Write an Algorithm to check if a student is eligible for sitting in ETE or not. If student's attendance is <75 and he is having CA<40 he is not allowed to take ETE else, he is allowed. Ask user to enter his attendance and CA marks.
1
Expert's answer
2021-10-05T13:23:18-0400
#include <stdio.h>

int main() {
    
    int attend;
    printf("Attendance: ");
    scanf("%d", &attend);
    
    int ca;
    printf("CA marks: ");
    scanf("%d", &ca);
    
    if (attend < 75 && ca < 40) {
        printf("You're NOT allowed to take ETE\n");
    }
    else {
        printf("You're allowed to take ETE\n");
    }


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS