实验一
public class jj {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a,b,c,sum,min,mul,div;
x=5;
y=3;
sum=x+y;
min=x-y;
mul=x*y;
div=x/y;
System.out.println("两个数的和:"+sum);
System.out.println("两个数的差:"+min);
System.out.println("两个数的积:"+mul);
System.out.println("两个数的商:"+div);
}
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a,b,c,sum,min,mul,div;
x=5;
y=3;
sum=x+y;
min=x-y;
mul=x*y;
div=x/y;
System.out.println("两个数的和:"+sum);
System.out.println("两个数的差:"+min);
System.out.println("两个数的积:"+mul);
System.out.println("两个数的商:"+div);
}
}