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

2019 wasn’t just a year—it was a whole era.From lectures to late nights, chaos to clarity… every frame built a story I’m still living ✨

Video Link The video contains snaps from 2019 throwback ones when i was doing my masters studies from university of surrey, guildford, londo...