class abcd1
{
public static void main (String args[])
{
String result class;
int avg mark=62;
if (avg mark >75)
resultclass= "distinction";
elseif (avg mark>=60)
resultclass="first class";
elseif (avg mark>=50)
resultclass="second class";
else
resultclass= "third class";
if (avg mark<40)
System.out.println("failed");
else
System.out.println("passed with"+resultclass);
}
}
No comments:
Post a Comment