SELL — Examples
Click on the »Edit« button in one of the examples below.
— Examples in English will be provided soon. —
xxxxxxxxxx
If-Anweisung
Gegeben sei der folgende Java-Programmausschnitt:
```int x=3, y=5, z=8;
if(x > 1) {
z = 1;
y = 10;
}
else if(y <= 7) {
z = 2;
}```
Welchen Wert enthält Variable `z` nach Ausführung des Programmausschnitts?
* $ #1 $
$ sqrt(x) $
is displayed as *
at the beginning of a line.__bold__
is displayed bold.#
following the solution variable.
int a = 3, b = 0;
for(int i=0; i<5; i++)
b += a;
System.out.println(b);
for(int i=0; i++; i<5)
for(int i=0; i<=5; i++)
for(int k=0; k<5; k+=1)
for(int i=0; i<5; ++i)
for(int i=10; i<15; i++)