Thursday, October 29, 2020

C program of admission

 #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

What If They Misunderstood You? ❤️ | How I Handle Misunderstandings

https://youtube.com/shorts/I09jcicjGnA   Right. [clears throat] So I want to share that over the time I have realized that you there is a hi...