कंप्यूटर प्रोग्रामिंग/वेरिएबल/स्यूडोकोड

// This program initializes and displays three variables.

Declare Integer I
Declare Real R
Declare String S

Set I = 1234567890
Set R = 1.23456789012345
Set S = "string"

Display "I = ", I
Display "R = ", R
Display "S = ", S
// This program demonstrates arithmetic operations.

Declare Integer A
Declare Integer B

Set A = 3
Set B = 2

Display A
Display B
Display A + B
Display A - B
Display A * B
Display A / B
// This program gets a user's name from the console and displays a greeting message.

Declare String Name

Input Name
Display "Hello ", Name, "!"

यह भी देखें

सम्पादन