Tuesday, April 6, 2010

matematika

import javax.swing.*;
public class matematika {

public static void main(String[] args) {
String temp1 = JOptionPane.showInputDialog("Masukkan Panjang : ");
int angka1 = Integer.parseInt(temp1);
String temp2 = JOptionPane.showInputDialog("Masukkan Lebar : ");
int angka2 = Integer.parseInt(temp2);
int Volume = angka1 * angka2;
JOptionPane.showMessageDialog(null,"Luas Persegi = "+volume+);
System.exit(0);
}
}

No comments:

Post a Comment