004-003-005

Array Element Access: Index Access

Easy

Problem Description

array Element Access: Index Access

In this problem, you will create a program that stores 5 integers in an array, retrieves the element at a specified index, and displays the result to standard output.

Learning Objective: Understand element access using array index

Input 5 integers and output the element at specified index.

Input

Lines 1-5: Integers to store in array (5 values)
Line 6: Index to retrieve (0-4)

Output

Element at [index]: [value]

Example

Input:

10
20
30
40
50
2
```java
Output:
```java
Element at 2: 30

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up