You are on page 1of 1

import javax.swing.

JOptionPane;
public class TestFemija2 {
public static void main(String[] args) {
String input1 = JOptionPane.showInputDialog("Jepni numrin e pare
:");
int n1 = new Integer (input1).intValue();
String input2 = JOptionPane.showInputDialog("Jepni numrin e dyte
:");
int n2 = new Integer (input2).intValue();
String input3 = JOptionPane.showInputDialog("Sa eshte prodhimi?"
);
int n3 = new Integer (input3).intValue();
System.out.println("Rezultati i prodhimit eshte: " + n1*n2);
JOptionPane.showMessageDialog
(null, "Rezultati i prodhimit eshte: " + (n1*n2)+ "\n Pergjigja
juaj eshte: " + (n3==(n1*n2)));
}
}

You might also like