first
This commit is contained in:
15
variables.hla
Normal file
15
variables.hla
Normal file
@@ -0,0 +1,15 @@
|
||||
program Vars;
|
||||
#include( "stdlib.hhf" )
|
||||
|
||||
static
|
||||
MyNum: int8 := 42;
|
||||
NumNotInitialized: int8;
|
||||
|
||||
begin Vars;
|
||||
|
||||
stdout.put( "MyNum = ", MyNum, nl);
|
||||
stdout.put( "Enter an integer value: " );
|
||||
stdin.get(NumNotInitialized);
|
||||
stdout.put( "You entered '", NumNotInitialized, "'", nl );
|
||||
|
||||
end Vars;
|
||||
Reference in New Issue
Block a user