#include <stdio.h>
int main() {
float m,s,e;
printf("Enter Maths, Science & English:");
scanf("%f %f %f",&m,&s,&e);
printf("Total = %.2f, Average = %.2f\n", m+s+e, (m+s+e)/3);
if(m+s+e>=200)
{
printf("Admission Confirmed");
}
else if(m+s>=150)
{
printf("Admission Confirmed");
}
else
{
printf("Admission unconfirmed");
}
}
No comments:
Post a Comment