0

Anybody willing to write this simple program using C#?

Given the following values; Store values in array: 15,20,25,30. Display the values; Request the user to enter a value; Display the entered value by the user if that value matches one of the given values in the array.

26th Apr 2018, 2:30 PM
Pandu T Hamukoto
Pandu T Hamukoto - avatar
1 ответ
+ 5
I'll give you the steps to solve it instead 😛. Give it a try first. *This information can all be found in the lessons 😃* * Create an array with those values. * Use a for loop and Console.Write to print each value in the array * Store users input as a number * Use a for loop to go through the array again, check if the number stored is equal to anything in the array. If true, use Console.Write to print the tested value. I recommend going over these parts of the lessons. - Printing Text - Getting User Input - Arrays - For loops - Using arrays with loops - If Statements
26th Apr 2018, 4:35 PM
Rrestoring faith
Rrestoring faith - avatar