![]() |
u mnie dziala, czyli wychodzi na to, ze jest poprawny
|
PASCAL rok przestêpny czy nie ??:)
Czy ten kod jest poprawny ??
var rok:integer; result:boolean; function TDataPrzestepny: Boolean; begin readln(Rok) ; if ((Rok mod 4 = 0) and (Rok mod 100 <> 0)) or (Rok mod 400 = 0) then Result := TRUE else Result := FALSE; end; begin tdataprzestepny; writeln(result); readln; end. |
| Wszystkie czasy w strefie CET. Aktualna godzina: 14:58. |
Powered by vBulletin® Version 3.9.0 LTS
Copyright ©2000 - 2026, vBulletin Solutions Inc.