You are on page 1of 2

Pseudocode Instruction Description Vb.

Net equal
Declaring a variable and Dim var as [DATATYPE]
DECLARATION AND ARRAYS array Dim myArr(max) as [DATATYPE]
= initialization
DECLARE var: [ DATATYPE]

DECLARE myArr [ 1…max]:


DATATYPE

Declaring two- dimensional Dim MyArr(1,1) As [DATATYPE]


DECLARE MyArr [1:max, 1: max] array
[DATATYPE]
CONSTANT rate = 1.02 Declaring a constant Dim rate = 1.02
variable
PROCEDURE swap (x , y ) Sub swap ()
Z=x*y The subroutine is used to
Return Z swap the two values and is Dim x, y As String = “”
then returned in the end
End PROCEDURE

IF x <= 10 Then “Valid” If the condition is met, a IF condition x <= 10 Then


ELSE function will be performed Console.WriteLine(“Valid”)
“NOT VALID” , if it does not approve to be ELSE
End If placed in any of its Console.Writeline(“NOT
statements it will be placed VALID”)
in else within its own
function END IF

Declaration

Sequence

Selection

Iteration

Random

Files

Functions / subroutines

String functions

Arrays

You might also like