C++ : Read array of 10 Integers and Display



Read array of 10 integers and displaying them.

“Array is the limited storage(as size mentioned) with ordered series or arrangement of  same kind of data(int or float or char)”

Example :Input is asked as : Enter the Array elements,
Enter Values like 00,10,20,30,40,50,60,70,80,90 are stored in particular space of array.

Example:

– This represents that the data collection is done in one array.
– This data storage array starts from a[0], 0 refers to starting starting index i.e. a[0] and continues till      a[7].
– a[0],a[1],a[2],……….a[9], each address has its individual data storing capacity.

Sample Code for Storing of data(10 integer’s) in an Array and displaying it:

 

Result of the Program:

Input asked:  Enter the number:
00
10
20
30
40
50
60
70
80
90

Output showed:      00
10
20
30
40
50
60
70
80
90

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Advertisment ad adsense adlogger