zu FGS-72
Spoiler anzeigen
Code
cls
Declare int i, Anzahl
Declare string Ergebnis
Print "\nLösungen: ";
For i, 1700, 1799
' Locate 1,20
' Print str$(i);
If (i mod 2) == 0
If (i mod 3) == 0
If (i mod 4) == 0
If (i mod 6) == 0
If (i mod 9) == 0
CaseNot Anzahl = 0 : Ergebnis = Ergebnis $ ", "
Inc Anzahl
Locate 1,1
Ergebnis = Ergebnis $ str$(i)
Print str$(Anzahl);
EndIf
EndIf
EndIf
EndIf
EndIf
EndFor
'WaitInput
Locate 4,1
Print Ergebnis
WaitEnd
' Mist. Ich hatte gedacht, das es etwas länger dauert.
' 1728, 1764
Alles anzeigen