Operator
I. Reflection
I know notation of calculation in C .
I know order of calculation . The first is arithmetic operations . The second is relation . The third is logic. In logic , The first is and "&&" , next is or" ||".
If operation is the same one kind . we will calculate from left to right .
II. Practice
If operation is the same one kind . we will calculate from left to right .
In the division , There are division took balances and division took integer.
Notation " i++" or " ++i" . It mean " i = i + 1";
Notation"i--" or "i--" it mean " i = i -1 ";
In C , "==" , "=" is differenceII. Practice
1.
10 - 11/3*2 >= 4 - 7%3 + 2 && !4 - 3 + 5/3 < 7/3 * 2 - 6 || 9-2*3-7>=5+10*⅔ && -11/4-7%3>=5*7-2*3
10 - 6 >= 4 - 1 + 2 && !4 - 3 + 1 < 4 - 6 || 9 - 6 - 7 >= 5 + 6 && -2 -1 >=35 - 6
4 >= 5 && -2 < -2 || -4 >=11 && -3 >=29
0 && 0 || 0 &&0
2.
12 + 15/ 7 <= 5 - 4%3 + 6 && 3+ 2*3 - 5/2 || 4*3 -9 <= 10/ 5 + 6 || 12 +4/ 3 - 12 *5 <= 10 * 6
14 <= 4 + 6 && 3 + 6 - 2 || 12- 9 <= 2 + 6 || 12 + 1 - 60 <= 60
14 <= 10 && 7 || 3 <= 8 || -47 <= 60
0 && 7 || 1 || 1
0 || 1|| 1
3.
18+3*1/2 <=8+6%4 - 1 && 9+2-3/4*2+3 || 5 +3*4 - 6 >= 3-8*5/6 && 4/5-3%2 >= 3*5
18 + 1 <= 8 + 2 -1 && 11- 1 + 3 || 5 + 12 - 6 >= 3 - 6 && 0 - 1 >=15
19 <= 9 && 13 ||11 >= -3 && -1 >= 15
0 && 13 || 1 && 0
0||0
0
4
2-19/3*4+2 <=2-7%3*5/6 && 8+2/3<2+3/4-1%2 >=13/2+7%3-5*7-11/3
2 -24 + 2 <= 2 - 0 && 8+ 0< 2 + 0 - 0 >= 6 + 1 - 35 - 3
-20 <= 2 && 8 < 2 >= -31
1 && 1
5
3*4-9/2+7%4 <=3+5/6*4 - 3%2 && 5-3*2+5%4-8/3>= 3/4*9-5/6+4%5-5*3
12- 4+ 3 <=3 + 0- 1 && 5 - 6 + 1 - 2 >= 0- 0 + 0 - 15
11<= 2 && - 2 >= -15
0 && 1
6
5/6-2*3+4<= 2%3+23-4/6 && 6+5 >= 6*5+2/8-4*6+5/6 && 2*3<=2/9*7+6/8-5/3
0 - 6 + 4 <= 0 + 23 - 0 && 11 >= 30+ 0- 24 + 0 && 6<= 0 + 0 - 1
-2 <= 23 && 11>= 6 && 6 <=-1
1 && 1 && 0
1 && 0
No comments:
Post a Comment