import javax.swing.JOptionPane;
class cd{
public static void main (String[]fff){
String a =JOptionPane.showInputDialog(null,"请输入第一个数");
int s =Integer.parseInt(a);
String b =JOptionPane.showInputDialog(null,"请输入第二个数");
int h =Integer.parseInt(b);
JOptionPane.showMessageDialog(null,s+"+"+h+"="+(s+h)+"\n"+
s+"-"+h+"="+(s-h)+"\n"+
s+"*"+h+"="+s*h+"\n"+
s+"/"+h+"="+s/h);
}
}
import javax.swing.JOptionPane;
class sd{
public static void main (String[]fff){
String a =JOptionPane.showInputDialog(null,"请输入第一个数");
int s =Integer.parseInt(a);
String b =JOptionPane.showInputDialog(null,"请输入第二个数");
int h =Integer.parseInt(b);
JOptionPane.showMessageDialog(null,s+"+"+h+"="+(s+h));
JOptionPane.showMessageDialog(null,s+"-"+h+"="+(s-h));
JOptionPane.showMessageDialog(null,s+"*"+h+"="+s*h);
JOptionPane.showMessageDialog(null,s+"/"+h+"="+s/h);
}
}