Add exercises

This commit is contained in:
Meinen, Eva 2020-03-25 15:37:24 +01:00
parent 1eb492dff4
commit 8bb587cffd
1 changed files with 9 additions and 10 deletions

View File

@ -79,17 +79,16 @@ boolean oneLarger = one > two; //oneLarger enthält true
boolean result = true && false || !(false || true); //Welchen Wert hat result?
```
2) ```java
boolean result = true && false || !(false || true); //Welchen Wert hat result?
int two = +3 -6; //Welchen Wert hat two?
```
3) ```java
boolean result = true && false || !(false || true); //Welchen Wert hat result?
int x = 0;
x += 3;
x =+ 5; //Welchen Wert hat x?
```
4) ```java
int a = 3;
int b = ++a - 1;
int c = a++ * 6; //Welchen Wert haben a, b und c?
```
int two = +3 -6; //Welchen Wert hat two?
int x = 0;
x += 3;
x =+ 5; //Welchen Wert hat x?
ant a = 3;
ant b = ++a - 1;
ant c = a++ * 6; //Welchen Wert haben a, b und c?
```