package lat_1c;
/* @author Ahmad Firdausi*/
import javax.swing.JOptionPane;
public class Main {
public static void main(String[] args) {
String a, b;
int angka1, angka2, kali;
a = JOptionPane.showInputDialog( "Angka 1 = " );
b = JOptionPane.showInputDialog( "Angka 2 = " );
angka1 = Integer.parseInt( a );
angka2 = Integer.parseInt( b );
kali = angka1 * angka2;
JOptionPane.showMessageDialog( null, +angka1+ "*" +angka2+ "=" + kali, "HASIL", JOptionPane.WARNING_MESSAGE );
System.exit( 0 );
}
}
0 komentar:
Posting Komentar