Nested Java program loops

Nested Java program loops import java.util.Scanner; class NestedIfElse { public static void main(String[] args) { int marksObtained, passingMarks; char grade; passingMarks = 40; Scanner input…

If else program in Java

If else program in Java import java.util.Scanner; class IfElse { public static void main(String[] args) { int marksObtained, passingMarks; passingMarks = 40; Scanner input =…