以下示例是关于Pascal中包含将输入存储在pascal中的变量中用法的示例代码,想了解将输入存储在pascal中的变量中的具体用法?将输入存储在pascal中的变量中怎么用?将输入存储在pascal中的变量中使用的例子?那么可以参考以下相关示例代码来学习它的具体使用方法。
Program InputInPascal;
Var
number:integer;
begin
write('Enter a number: ');
readln(number); // Waiting for input and storing it inside variable "number"
writeln('The double of the number entered is: ',number*2);
End.
本文地址:https://www.itbaoku.cn/snippets/787523.html