3/11 Lab
1. Let i=2;
Print i;
Print 2 * (i++);
Print i;
Ans: 2, 4, 3
2. Let i=2;
Print i;
Print 2 * (++i);
Print i;
Ans: 2, 6, 3
3. Let m=7, n=2;
Print (double) m/n;
Print m/ (double)n;
Ans: 3.5, 3.5
4. Codemate 1.01
Ans: Consumption of 1136.3636363636365 kg of soda would kill a person weighing 50.0 kg.
5 Codemate 1.03
6 則留言:
s9026234 have done 1 to 5
s9126107 did 1,2,3,4,5.
s9014104 did 1,2,3
s9126218 did 1,2,3,4,5
s9126359 did 1,2,3,4,5
s9026104 did 1,2,3,4,5
張貼留言