Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PASCAL

pascal output

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.
 
PREVIOUS NEXT
Tagged: #pascal #output
ADD COMMENT
Topic
Name
4+1 =