Sign InCreate Account

EditorProjectsPseudocode TutorPractice QuestionsCode ConverterCode GeneratorFlowchartsUpgrade
Back to Problems
PreviousNext

You need to sign in to test your code and save your progress on this question.

Problem Description

Find Index of Value

Hard
Searching
Arrays
Loops

Write a program that inputs 5 numbers sequentially to populate an array, and then inputs a target number `T`. Output the 1-based position (1 to 5) of the first occurrence of `T`. If it is not found, output -1.

Example Input

10 20 30 40 50 30

Example Output

3

Success Rate:

0% (0 passed / 0 attempted)

Code

Unsaved

Test Results

Click "Run Code" to evaluate your code against the tests.

Product

For SchoolsOverviewFeaturesFAQ

© 2026 PseudoEditor. All rights reserved.