public class Test1 {
private static String sum;
/*
计算两个数的和、差、积、商、余数。
*/
public static void main(String[] args) {
int x = 24 , y = 6;
int sun = x + y;
int differnce = x-y;
int product = x * y;
int quotient = x/y;
int remainder = x % y;
System.out.println("Sum of"+x+"and"+y+":"+sum);
System.out.println("Differnce of"+x+"and"+y+":"+differnce);
System.out.println("Product of"+x+"and"+y+":"+product);
System.out.println("Quotient of"+x+"and"+y+":"+quotient);
System.out.println("Remainder of"+x+"and"+y+":"+remainder);
}
}