#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int marks;
cout<<" enter marks=";
cin>>marks;
if(marks>=40)
{
if(marks>=60)
{
if(marks>=80)
{
cout<<"\n excellent";
}
else
{
cout<<"\n first";
}
}
else
{
if(marks>=50)
{
cout<<"\n good second";
}
else
{
cout<<"\n second";
}
}
}
else
{
if(marks>=20)
{
cout<<"\n poor";
}
else
{
cout<<"\n v poor";
}
}
getch();
}
No comments:
Post a Comment