Menu


.

Write a program to know which position is scored.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a,b,c,d,e,f,g;

cout<<"Please enter Marks of Five different subjects";

cin>>a>>b>>c>>d>>e;

f=a+b+c+d+e;

g=f/5;

if(g>=60)

cout<<"First division";

else if(g>=50 && g<=59)

cout<<"Second division";

else if(g>=50 && g<=49)

cout<<"Third division";

else

cout<<"Fail";

getch();

}




Enjoy our courses Today