本程序员今天写第一个简书:
A+B的求和:
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Count {
public static void main(String[] args) {
int num1,num2;
Scanner input = new Scanner(System.in);
System.out.print("input num1: ");
num1=input.nextInt();
System.out.print("input num2: ");
num2=input.nextInt();
System.out.print("num1+num2="+(num1+num2));
}
}