Example Answer

Here is our example answer. Don't forget that if yours is not exactly the same it's not necessarily wrong.

Program Input_Number;          {Don't forget that this line is not needed}

Uses Crt;

var
   num : Integer;
begin

   Clrscr;;
   Writeln('Enter an Integer');
   Readln(num);
   Writeln('The Integer you entered was: ',num);
   Readln;;                      {Wait for the user to press enter}

end.

In programming the same thing can be done many different ways, so don't worry if your program is different from ours as long as it works fine.

However if you found this task hard or didn't understand, you might want to reread some of the previous lessons and try this task again later.

Related Lesson (Basic Input Output)