帕斯卡输出

以下示例是关于Pascal中包含帕斯卡输出用法的示例代码,想了解帕斯卡输出的具体用法?帕斯卡输出怎么用?帕斯卡输出使用的例子?那么可以参考以下相关示例代码来学习它的具体使用方法。

[英]:pascal output源码类型: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/787506.html