Added increment demo program

java11^2
Sandy Brownlee 2 years ago
parent 1da8cabdf7
commit f5951671b9
  1. 14
      programs/increment.tri

@ -0,0 +1,14 @@
! this won't compile without implementing the bonus material in Practical 3
let
var a: Integer
in
begin
getint(var a);
a++;
putint(a);
puteol();
a++;
putint(a);
puteol();
end