共回答了16个问题采纳率:100%
import java.util.Scanner;
public class Test20010{
public static void main(String args[]){
x05 int num1,num2;
x05 Scanner in=new Scanner(System.in);
x05 num1=in.nextInt();
x05 num2=in.nextInt();
x05 /*------------------------*/
x05 int sum = num1 + num2;
x05 int sub = num1 - num2;
x05 long mul = num1 * num2;
x05 int div = num1 / num2;
x05 int mod = num1 % num2;
x05
x05 System.out.println(num1 + " + " + num2 + " = " + sum);
x05 System.out.println(num1 + " - " + num2 + " = " + sub);
x05 System.out.println(num1 + " * " + num2 + " = " + mul);
x05 System.out.println(num1 + " / " + num2 + " = " + div);
x05 System.out.println(num1 + " % " + num2 + " = " + mod);
x05 //Add ended
}
}
1年前
2