aboutsummaryrefslogtreecommitdiff
path: root/4a/6.3 math ecercises.txt
blob: 24d0a62d30248a1b97f7c8d6e27c33b0aeaedd0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
6.3
1. a = 5 + 10 * 2;
	a = 25
2. a = (5 + 10) * 2;
	a = 30
3. a = 5;
   a = a + (5 + 10) * 2;
   a = 35
4. a = 10 % 5;
	a = 0;
5. a = 10 % 3;
	a = 1;
6. a = 5.2 % 2.3;
	Modulo does not work with floats and will produce an error
7. 2 - 5 + 7 = a;
	will produce an error, when doing assignment variable must be to the left of the =