Online Java Compiler - Online Java Editor - Java Code Online2
Online Java Compiler - Online Java Editor - Java Code Online2
https://www.jdoodle.com/online-java-compiler/ 1/2
6/14/2022 Online Java Compiler - Online Java Editor - Java Code Online
1 public class irajava{
2 JDoodle
public is servingvoid
static the programming
main(String[] args) {
Scanner input = new scanner (System.in) ; Execute Mode, Version, Inputs &
3 community since 2013
4 System.out.printIn ("Massukkan markah anda") ; Arguments
5 int markah = input.nextInt () ;
6 switch (markah) { CommandLine Arguments
7 case 1: {
8 if (markah >=90)
9 Gred = "A+" ;
10 break;
11 } case 2: { Stdin Inputs
12 if (markah >=80)
13 Gred = "A" ;
14 break;
15 } case 3: {
16 if (markah >=75)
17 Gred = "A-" ;
18 break;
} case 4: {
Result
19
20 if (markah >=70) CPU Time: sec(s), Memory: kilobyte(s)compiled and ex
21 Gred = "B+" ;
22 break; /irajava.java:51: error: class, inter
23 } case 5: { }
24 if (markah >=65) ^
25 Gred = "B" ; 1 error
26 break;
27 } case 6: {
28 if (markah >=60)
29 Gred = "C+" ;
30 break;
31 } case 7: { Files Uploaded
32 if (markah >=50)
33 Gred = "C" ;
/uploads/irajava
34 break;
35 } case 8: {
36 if (markah >=45)
37 Gred = "D" ;
38 break;
39 } case 9: {
40 if (markah >=40)
41 Gred = "E" ;
42 break;
43 } default: {
44 if (markah >=0)
45 Gred = "G" ;
46 break;
47 }
https://www.jdoodle.com/online-java-compiler/ 2/2