fork download
  1. With Ada.Text_IO; Use Ada.Text_IO;
  2. With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO;
  3. With Ada.Float_Text_IO; Use Ada.Float_Text_IO;
  4.  
  5. procedure Calling is
  6.  
  7. procedure One is
  8. begin
  9. Put("This is procedure One talking.");
  10. New_Line;
  11. end One;
  12.  
  13. procedure Two is
  14. begin
  15. Put("This is procedure Two talking.");
  16. New_Line;
  17. One;
  18. end Two;
  19.  
  20. procedure Three is
  21. begin
  22. Put("This is procedure Three talking.");
  23. New_Line;
  24. Two;
  25. One;
  26. end Three;
  27.  
  28. begin
  29. One;
  30. Two;
  31. Three;
  32. end Calling;
  33.  
  34.  
Success #stdin #stdout 0s 5804KB
stdin
Standard input is empty
stdout
This is procedure One talking.
This is procedure Two talking.
This is procedure One talking.
This is procedure Three talking.
This is procedure Two talking.
This is procedure One talking.
This is procedure One talking.