when I run this bit of code, there are two things that baffle me.
Firstly, why do the hundreth seconds seemingly randomly appear with extra digets such as '655'
Secondly, why does pascal refuse to display the 'Writeln' outside of the 'Repeat Until ' Loop if I press 'enter'? It works fine if I press any other key on the keyboard...?
USES Crt, Dos;
VAR hb, mb, sb, hsb: Word;
h, m, s, hs: Word;
GetTime(hb, mb, sb, hsb);
GetTime(h, m, s, hs);
write(m,':', s,':', hs);