Simple one dimensional array example

One Dimensional Array Example

In this program, you will get the program code of one dimensional array example in c++.

This will be a simple array program, in which you will learn to declare an array, input elements in an array, and print the elements of array.

Program:

Output:

Enter 10 numbers : 3
2
4
1
8

6
7
6
9
12

List of numbers are …  3 2 4 1 8 6 7 6 9 12

 

 

Leave a Comment

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

Scroll to Top