fork(84) download
  1. var
  2. num1, num2: Integer;
  3. begin
  4. // A simple program for adding two numbers.
  5.  
  6. WriteLn('This program will add two numbers');
  7. WriteLn();
  8.  
  9. WriteLn('Enter the first number:');
  10. ReadLn(num1);
  11.  
  12. WriteLn('Enter the second number');
  13. ReadLn(num2);
  14.  
  15. WriteLn('The result is: ', num1 + num2);
  16.  
  17. WriteLn('Press ENTER to end.');
  18. ReadLn();
  19. end.
Success #stdin #stdout 0s 232KB
stdin
10
5
stdout
This program will add two numbers

Enter the first number:
Enter the second number
The result is: 15
Press ENTER to end.