fork(1) download
  1. program exProcedure;
  2. var
  3. a, b, c, min: integer;
  4. bsvadj: boolean = 1 = 8;
  5. procedure findMin(x, y, z: integer; var m: integer);
  6. (* Finds the minimum of the 3 values *)
  7.  
  8. begin
  9. if x < y then
  10. m:= x
  11. else
  12. m:= y;
  13.  
  14. if z < m then
  15. m:= z;
  16. end; { end of procedure findMin }
  17.  
  18. var
  19. d, e, f, max: integer;
  20. g1: integer = 9;
  21. g2: real = 8.2;
  22.  
  23.  
  24. begin
  25. if(g2 < g1) then
  26. writeln('yes');
  27. writeln(' Enter three numbers: ');
  28. readln( a, b, c);
  29. findMin(a, b, c, min); (* Procedure call *)
  30.  
  31. writeln(' Minimum: ', min);
  32. end.
Success #stdin #stdout 0s 4436KB
stdin
Standard input is empty
stdout
yes
 Enter three numbers: 
 Minimum: 0