0% found this document useful (0 votes)
2 views1 page

Declaration

The document outlines the declaration and initialization of various arrays in programming, including Integer, Character, Boolean, and String arrays. It also includes a loop to assign values to a character array and prompts for user input to populate a numbers array. The structure emphasizes data types and input/output operations in a programming context.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Declaration

The document outlines the declaration and initialization of various arrays in programming, including Integer, Character, Boolean, and String arrays. It also includes a loop to assign values to a character array and prompts for user input to populate a numbers array. The structure emphasizes data types and input/output operations in a programming context.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DECLARATION

#Array – is a data structure which stores information of the same data type

DECLARE IntegerArray : ARRAY[0:20] : INTEGER

DECLARE CharacterArray : ARRAY[1:10] AS CHARACTER

DECLARE IsPresent : ARRAY[1:7] : BOOLEAN

DECLARE StudentDetails : ARRAY[1:6,1:4] AS STRING

Characters[1] = ‘B’

Characters[2] = ‘A’

Characters[6] = ‘S’

FOR Index = 1 TO 1 000 000

Characters[Index] = ‘A’

INPUT/ASSIGN

OUTPUT “Enter a real number”


INPUT Number
NumbersArray[1] = Number

INSTEAD:

FOR Count = 1 TO 7
OUTPUT “Enter a real number”
INPUT Number
NumbersArray[Index] = Number
NEXT Index

OUTPUT

You might also like