作业1
作业代码
public class zy1 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=3;
int b=40;
int c=6;
int d=9;
int e=2;
int f=3;
boolean res;
res = (a+b%c)>(d/e*f);
System.out.println(res);
}
}
运行效果:
运行正确
作业2
作业代码
public class zy2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int b=1;
int c=2;
int d=38;
int e=4;
int f=5;
int g=6;
int h=3;
int i=9;
boolean a;
a = !(b+c*(38/e)%f>g||h!=i-g);
System.out.println(a);
}
}
运行效果:
运行正确