pascal input number
To input a number in Pascal, you can use the
ReadLn function. Here's an example:
Write('Enter a number: ');
// Do something with the number
In this example, the
ReadLn function is used to read a number from the user. The number is stored in the variable
number, which is declared as an
Write function is used to prompt the user to enter a number.
After the number is read, you can perform any desired operations or calculations with it.