A C program to check Whether the student is passed or not
#include<stdio.h>
#include<conio.h>
void main()
{
int mark;
clrscr();
printf("Enter the mark out of 100");
scanf(" %d",&mark);
if(mark>40)
{
printf("The student is passed");
}
else
{
printf("The studet is not passed");
}
getch();
}
|