Wednesday 30 January 2013

Average greater than give %age show cong...in c++

include<iostream.h>
#include<conio.h>
void main()
{
int e,u,m,avg;
cout<<"enter marks of eng"<<endl;
cin>>e;
cout<<"enter marks of urd"<<endl;
cin>>u;
cout<<"enter marks of math"<<endl;
cin>>m;
avg=(e+u+m)/3;
if(avg>80)
{cout<<"you are above standard"<<endl;
cout<<"admission granted"<<endl;}
getch();
}

0 comments:

Post a Comment