homework 3
public class homework3 {
public static void main(String[] args) {
int Running = 10;
int basketball= 8;
int sleeping = 1;
double weight;
weight=150/2.2;
System.out.println("the man burned "+weight*0.0175*(Running*30+basketball*30+sleeping*360)+" Calories");
}
}
這次作業比之前的lab2清楚的多,所以很快的也做好了!
Homework3
public static void main(String[] args) {
int Running = 10;
int basketball= 8;
int sleeping = 1;
double weight;
weight=150/2.2;
System.out.println("the man burned "+weight*0.0175*(Running*30+basketball*30+sleeping*360)+" Calories");
}
}
這次作業比之前的lab2清楚的多,所以很快的也做好了!
Homework3
0 Comments:
張貼留言
<< Home