07-25-2023, 09:39 AM
program DataTypesExample;
begin
// Variable declaration
var
num1: Integer;
num2: Double;
name: String;
num1 := 42;
num2 := 3.14;
name := 'John Doe';
// Output to screen
WriteLn('Integer:', num1);
WriteLn('Double:', num2:0:2);
WriteLn('String:', name);
end.
begin
// Variable declaration
var
num1: Integer;
num2: Double;
name: String;
num1 := 42;
num2 := 3.14;
name := 'John Doe';
// Output to screen
WriteLn('Integer:', num1);
WriteLn('Double:', num2:0:2);
WriteLn('String:', name);
end.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos