main()
{
int percent;
clrscr();
printf("\n enter your percent");
scanf(" %d",& percent);
if(percent>60)
{
printf("\n passed in first class");
}
else
if(percent<60&&percent>40)
{
printf("\n passed in second class");
}
else
if(percent<40)
{
printf("\n you are fail");
}
getch();
}
{
int percent;
clrscr();
printf("\n enter your percent");
scanf(" %d",& percent);
if(percent>60)
{
printf("\n passed in first class");
}
else
if(percent<60&&percent>40)
{
printf("\n passed in second class");
}
else
if(percent<40)
{
printf("\n you are fail");
}
getch();
}
No comments:
Post a Comment