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

विकिविश्वविद्यालय से

variables.txt[सम्पादन | स्रोत सम्पादित करें]

// 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

arithmetic.txt[सम्पादन | स्रोत सम्पादित करें]

// 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

io.txt[सम्पादन | स्रोत सम्पादित करें]

// This program gets a user's name from the console and displays a greeting message.

Declare String Name

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

यह भी देखें[सम्पादन | स्रोत सम्पादित करें]