Question
help with C# assignment 1) Build a method which reads 3 integers from the console and returns them as an int array (type a number,
help with C# assignment
1) Build a method which reads 3 integers from the console and returns them as an int array (type a number, then hit enter, 3 times). This needs to be its own method.
2) Call this method twice to store 2 local int array variables.
3) Once both arrays are built, write another method which accepts the two arrays and compares the contents to see if they match. If the method returns true (the arrays match), display "Arrays match" in the console. Otherwise, display "Arrays don't match" in the console.
4) Finally, ensure at the end, that the user must hit the enter key in order to exit the program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started