need help to figure out basic java program
i have to write a java program to input 10 student marks,each mark must be checked to see if it is a pass,merit or fail.I can write a program to check 1 mark as follows
System.out.println("What mark did you get");
if(mark <= 40)
else(mark == 41 <= 59)
else(mark == 60 <= 100)
System.out.println("You got a merit");
System.out.println("Invalid mark please re-enter");
my question is how do i write the progarm so it will ask for 10 student marks?
i need to use loops or switch statements
Try something like this...
Try this for size
Originally Posted by shane123