C program to read marks of any 10 students in and count who scored above 80


#include <stdio.h>
int main() 
{
    int marks[10];
    int count = 0;
    // Read marks of 10 students
    printf("Enter marks of 10 students in Computer Science:\n");
    for (int i = 0; i < 10; i++) {
        printf("Student %d: ", i+1);
        scanf("%d", &marks[i]);
    }
    // Count students with marks above 80
    for (int i = 0; i < 10; i++) {
        if (marks[i] > 80) {
            count++;
        }
    }
    // Display count of students with marks above 80
    printf("Number of students with marks above 80: %d\n", count);
    return 0;
}


OUTPUT