C program to test whether the student is pass or fail in computer science where pass marks is 40


 Answer:
#include<stdio.h>
int main()
{
    int marks;
    printf("Enter computer marks");
    scanf("%d",&marks);
    if(marks>=40)
        printf("Pass");
    else
        printf("Fail");
    return 0;
}