JAVA作業三
public class homework926
{
public static void main(String[] args)
{
double run=10;
double baseket=8;
double sleep=1;
double pound=150;
double kg;
System.out.println("The weight of this man is "+pound/2.2+" kg");
kg=pound/2.2;
double total;
total=0.0175*((run*30)+(baseket*30)+(*6*60))*kg;
System.out.println("Total calories he burned is "+total+" Cal");
}
}
連結
0 Comments:
Post a Comment
<< Home