![]() |
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. |
u mnie dziala, czyli wychodzi na to, ze jest poprawny
|
Wszystkie czasy w strefie CET. Aktualna godzina: 19:34. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.