Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

PROGRAM FOR CHECK THE CONDIDATE IS ELIGIBLE OR NOT

Posted By: Jawwad Akram     Category: C Programming     Views: 2833

PROGRAM FOR CHECK THE CONDIDATE IS ELIGIBLE OR NOT

Code for PROGRAM FOR CHECK THE CONDIDATE IS ELIGIBLE OR NOT in C Programming

#include<stdio.h>
#include<conio.h>

void main()
{
    int maths,chem,physics;
    clrscr();

    printf("Enter the marks of mathamatics  ::  ");
    scanf("%d",&maths);

    printf("Enter the marks of chemistry    ::  ");
    scanf("%d",&chem);

    printf("Enter the marks of physics      ::  ");
    scanf("%d",&physics);

    if(maths >= 60 && chem >= 40 && physics >=50 && (maths + chem + physics >=200) || (maths + physics >= 150) )
    printf("\nThe Candidate Is Eligible ");
    else
    printf("\nThe Candidate Is Not Eligible ");

    getch();
}

/*
********
OUTPUT
********
Enter the marks of mathamatics :: 77
Enter the marks of chemistry :: 88
Enter the marks of physics :: 33

The Candidate Is Not Eligible

*/
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM FOR CHECK THE CONDIDATE IS ELIGIBLE OR NOT Or get search suggestion and latest updates.

Jawwad Akram
Jawwad Akram author of PROGRAM FOR CHECK THE CONDIDATE IS ELIGIBLE OR NOT is from Hyderabad, Pakistan.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!