“pascal readln ()” Code-Antworten

pascal readln ()

Program InputInPascal;

Var
number:integer;

begin
    write('Enter a number: ');
    readln(number);    // Waiting for input and storing it inside variable "number"
    
    writeln('The double of the number entered is: ',number*2);
End.
ALeonidou

pascal readln ()

Program PauseUntilKey;

Begin
    writeln('Press any key to continue...');
    
    readln();      //pause program until any key is pressed
    
    writeln('Program Resumed!');
End.
ALeonidou

Ähnliche Antworten wie “pascal readln ()”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen