import javax.swing. *;
public class {If_InputAngka1
public static void main (String [] args) {
/ / declaration of variables
int value;
String input = JOptionPane.showInputDialog ("Enter your score:");
value = Integer.parseInt (input);
/ / declaration statement if the condition
if (value> = 60) {
JOptionPane.showMessageDialog (null, "You Passed");
{else}
JOptionPane.showMessageDialog (null, "You Failed");
}
}
}
source: STMIK AMIKOM YOGYAKARTA
0 komentar
Posting Komentar