Input and Output

In order to read from the keyboard in Pascal, use
readln(Choice) instead of Choice = Console.ReadLine().

In order to write to the console in Pascal, use
writeln('Product: ',  Product) instead of Console.WriteLine("Product: " & Product).

We cover input and output from files in both of the other main sections. See this part of the Comparison Table and the procedures SaveTextFile, ReadTextFile, SaveFileOfIntegers, ReadFileOfIntegers, SaveFileOfRecords and ReadFileOfRecords in program Converted.

Programming - a skill for life!

Important differences between the code of Pascal and VB console programs