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

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...