#include <stdio.h>
int main()
{
// 9. Write a program to read marks of a student from keyboard whether the student is pass
// or fail(using if else)
printf("\tCheck Pass Or Fail");
printf("\n=================================");
float marks;
printf("\n\nEnter your Marks : ");
scanf("%f", &marks);
printf("\n_________________________________\n");
if (marks >= 33)
{
printf("\nCongratulations You Are Passed......");
}
else
{
printf("\nOoops..You Are failed!!!!!!!!!");
}
printf("\n_________________________________\n\n");
return 0;
}
scanf
function.if-else
statement. If the marks are greater than or equal to 33, it prints "Congratulations You Are Passed......". Otherwise, it prints "Ooops..You Are failed!!!!!!!!!"