Python | C |
---|---|
$\begin{aligned} & \mathrm{s} = 10 \\ & \mathrm{x} = 34 \\ & \mathrm{i} = 1 \\ & \text{while i < 4:} \\ & \qquad \begin{aligned} \mathrm{x} & = \mathrm{x} - 3 \\ \mathrm{s} & = \mathrm{s} + \mathrm{x} \\ \mathrm{x} & = \mathrm{x} - 3 \\ \mathrm{i} & = \mathrm{i} + 1 \end{aligned} \end{aligned}$ | $\begin{aligned} & \text{int s, x, i;} \\ & \mathrm{s} = 10; \\ & \mathrm{x} = 34; \\ & \mathrm{i} = 1; \\ & \text{while (i < 4)}\{ \\ & \qquad \mathrm{x} = \mathrm{x} - 3; \\ & \qquad \mathrm{s} = \mathrm{s} + \mathrm{x;} \\ & \qquad \mathrm{x} = \mathrm{x} - 3; \\ & \qquad \mathrm{i} = \mathrm{i} + 1; \\ & \} \end{aligned}$ |
Isprobaj potpuno besplatno!
Registracijom dobivaš besplatan*
pristup dijelu lekcija za svaki predmet.