aboutsummaryrefslogtreecommitdiff
path: root/Testing/Semantic/t3-3.p
blob: 32b5e593dc212372781544fcda638eedc3619c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(* dangling ELSE binds to closest IF *)
program main( input, output );
  var a: integer;
begin
  read(a);
  if ( a < 10 ) then
    if ( a >= 10 ) then
      a := 1
  else
      a := 0;
  write(a)
end.