用帕斯卡打印

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

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