SELL — Examples
Click on the »Edit« button in one of the examples below.
— Examples in English will be provided soon. —
xxxxxxxxxx
Java: Summe
Schreiben Sie einen Codeausschnitt, in dem die Summe $s=sum_(i=0)^n i$ berechnet wird.
* Variable `n` ist bereits deklariert worden. Der konkrete Wert ist jedoch unbekannt und wird hier durch ein Fragezeichen dargestellt.
* Das ganzzahlige Ergebnis soll in Variable `s` stehen.
JavaBlock b
given 'int n = §23§;'
assert 's == 276'
$ #b $
$ sqrt(x) $
is displayed as *
at the beginning of a line.__bold__
is displayed bold.#
following the solution variable.