import java.util.Scanner;
class MarksOFGrade
{
public static void main(String[]args)
{
int marks;
System.out.println("please enter the Marks");
Scanner sc=new Scanner(System.in);
marks=sc.nextInt();
if(marks<=50)
{
System.out.println("fail");
}
else if(marks>50&&marks<=60)
{
System.out.println("++Grade E++");
}
else if(marks>60&&marks<=70)
{
System.out.println("+++grade d ++++");
}
else if(marks>70&&marks<=80)
{
System.out.println("****Grade C****");
}
else if(marks>80&&marks<=90)
{
System.out.println("**grade B****");
}
else if(marks>90&&marks<=100)
{
System.out.println("Grade A");
}
else
{
System.out.println("Invalied");
}
}
}
class MarksOFGrade
{
public static void main(String[]args)
{
int marks;
System.out.println("please enter the Marks");
Scanner sc=new Scanner(System.in);
marks=sc.nextInt();
if(marks<=50)
{
System.out.println("fail");
}
else if(marks>50&&marks<=60)
{
System.out.println("++Grade E++");
}
else if(marks>60&&marks<=70)
{
System.out.println("+++grade d ++++");
}
else if(marks>70&&marks<=80)
{
System.out.println("****Grade C****");
}
else if(marks>80&&marks<=90)
{
System.out.println("**grade B****");
}
else if(marks>90&&marks<=100)
{
System.out.println("Grade A");
}
else
{
System.out.println("Invalied");
}
}
}
0 comments:
Post a Comment