Problem :

    When you want to see whether the student is pass or fail in the exam, using program in C language.

Solution :

    Here, I have provided a code using C language by which you will be able to see whether the student is pass or fail in the exams. 




// program for pass and fail of student in exam

# include <stdio.h>

#include <conio.h>

int main ()

{

    int n;

    printf (" enter the marks of student ");

    scanf ( "%d ", & n );

    if ( n >= 40 )

        {

            printf ( " the student have passed the subject ");

            }

    else

        {

            printf ( " the student have not passed the subject " );

        }

return 0;

}


一一一一一一一一一一一一一

OUTPUT :

enter the marks of student 47

the student have passed the subject 

一一一一一一一一一一一一一一