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.

22nd Dec 2016, 4:59 PM
Vannak Saing
Vannak Saing - avatar
3 ответов
+ 2
thank helpful
22nd Dec 2016, 5:47 PM
Vannak Saing
Vannak Saing - avatar
+ 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"); } }
22nd Dec 2016, 5:23 PM
Doolitha Samaranayake
Doolitha Samaranayake - avatar
0
😲🙄
2nd Oct 2020, 1:48 PM
Roboam Junior
Roboam Junior - avatar