以下示例是关于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/787509.html