First time user of this and pretty new to java programming. I was tasked with making a letter grading do-while statement in class and I'm just having simple issues I believe, but I honestly am confused about what's wrong.
The outcome Desired is Enter an integer (1-100): 95 You got an A Enter an integer (1-100): 85 You got a B Enter an integer (1-100): 75 You got a C Enter an integer (1-100):65 You got a D Enter an integer(1-100):59 (less than 60) You have failed The average of these 5 grades is xxx
public class Lettergrade {
public static void main(String[] args) {
boolean check=false;
Scanner input = new Scanner(System.in);
System.out.print("Enter your grade: ");
int grade = input.nextint();
do{ grade = (grade/10);
if (grade == 9);{{
System.out.println("Your Letter Grade is: A ");
check=(true);}//end elseif
else if (grade == 8);{
System.out.println("Your Letter Grade is: B ");
check=(true);}//end elseif
else if (grade == 7);{
System.out.println("Your Letter Grade is: C ");
check=(true);}//endelseif
else if (grade == 6);{
System.out.println("Your Letter Grade is: D ");
check=(true);
}//end elseif
else;{
System.out.println("Your Letter Grade is: F ");
check=(true);
}//end elseif
}//end if
}while (check==false);//end do
}//end main
} //end class