0
How to do this?
Exercise 01: Write a program called CheckPassFail which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise. The program shall always print “DONE” before exiting.
3 ответов
+ 2
thank helpful
+ 1
class CheckPassFail {
public static void main (String [] args){
int mark=100;
if (mark>=50){
System.out.println("PASS");
}
else {
System.out.println("FAIL");
}
System.out.println("DONE");
}
}
0
😲🙄