Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program Skrydis;
- var a,b,c,v,m:integer;
- begin
- WriteLn('Įveskite lėktuvo pakilimo laiką (valandas, o po to minutes)');
- Readln(a,b);
- WriteLn('Įveskite laiką, kurį lėktuvas praleido ore (minutes)');
- ReadLn(c);
- v:=(a*60+b+c) div 60 mod 24;
- m:=(a*60+b+c) mod 60;
- WriteLn('Lėktuvas leisis, kai bus ',v,' valandų ir ',m,' minutės');
- ReadLn
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement