1. Course
  2. Arrays
  3. Search an array of integers

Search an array of integers


Last updated: 8/23/2020 Difficulty: Intermediate

Create a program in C# that serves to search an array of integer values. To do this, follow these steps:

  • Get the quantity (x) of values from the array of integers
  • Prepare an array of integers with the previous amount
  • Get the number (and) to look for in the array of integers
  • Show whether the number (y) exists in the array of integers or not
  • Repeat until the end text is entered

Input

3
2
5
3
5
end

Output

The number 5 exist

Solution

Arrays

2 / 11

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising