Hello,
200 ist doch restlos durch 100 teilbar, aber ich bekomme ein klares NEIN, wieso?
...weil du die Intelligenz des Interpreters falsch einschätzt, er liest in deinem Statement was anderes:
if (zahl % 100)
-> if (200 % 100)
-> if (0)
-> if (false)
=> er führt den else-Zweig aus.
if (zahl%100 == 0)...
MfG
Rouven
--
-------------------
Ambition is the last refuge of failure. -- Oscar Wilde (Irish Poet, Novelist, Dramatist and Critic, 1854-1900)
-------------------
Ambition is the last refuge of failure. -- Oscar Wilde (Irish Poet, Novelist, Dramatist and Critic, 1854-1900)