8.Given the marks in the three subjects, write a program to process the applications to the list of the eligible candidates

Posted: August 26, 2012 in Lab 6
#include<stdio.h>
int main()
{
int maths,physics,chemistry,total,total1;
printf("Enter Marks:\n");
scanf("%d%d%d",&maths,&physics,&chemistry);
printf("Maths=%d\nPhysics=%d\nChemistry=%d",maths,physics,chemistry);
total=maths+physics+chemistry;
total1=maths+physics;
if(maths>=60&&physics>=50&&chemistry>=40)
{
if(total>=200||total1>=150)
{
printf("\nYou Are Eligible");
}
}
else
printf("\nYou Are Not Eligible");

return 0;
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s