以下示例是关于Pascal中包含帕斯卡写用法的示例代码,想了解帕斯卡写的具体用法?帕斯卡写怎么用?帕斯卡写使用的例子?那么可以参考以下相关示例代码来学习它的具体使用方法。
Program OutputInPascal;
Var
number : Integer;
Begin
//Print and move to next line
writeln('Hello World of Pascal!');
//Print without moving to next line
write(' => Math fact: ');
//Print text and variables and move to next line
number := 10;
writeln('The double of ',number,' is ', number * 2);
//Just move to next line (leave line empty)
writeln();
End.
本文地址:https://www.itbaoku.cn/snippets/787507.html