1d array
- Declare an integer variable called "size" to store the size of the array.
- Ask the user to input the size of the array.
- Declare an integer array with the size obtained from the user input.
- Use a for loop to iterate through each element of the array.
- Ask the user to input the value for each element of the array.
- Store the user input in the respective element of the array.
- Use another for loop to iterate through each element of the array.
- Print the value of each element of the array to the console.