QP School

Full Version: Basic Input and Output in Object Pascal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
program InputOutputExample;
begin
  // Variable declaration
  var
    age: Integer;

  WriteLn('Enter your age:');
  ReadLn(age);

  WriteLn('Your age is:', age);
end.