Marks Of grad in java using the If Else - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Marks Of grad in java using the If Else

Marks Of grad in java using the If Else

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");
}
 }
}

About EasyToCode

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.