5. Flexing My 2Dby CodeChum Admin
I'm a pro-grammer and I want to flex to the world my 2D arrays in an extraordinary way! Ha-ha-ha!
Instructions:
In the code editor, you are provided with an initial code in the main() that asks the user for the elements of a 5x5 2D array and a call to a function called flex2D(). Do not edit anything in the main() function.Your task is to implement the function definition of the flex2D() with the following details:Return type - voidFunction name - flex2DParameters - int[][5]Definition - prints the elements of each of the row twice.Input
1. Elements of a 5x5 2D array
Output
Enter the elements:1 9 2 3 48 2 4 0 10 3 1 3 49 2 3 1 58 8 1 7 6
Flex:1 9 2 3 41 9 2 3 48 2 4 0 18 2 4 0 10 3 1 3 40 3 1 3 49 2 3 1 59 2 3 1 58 8 1 7 68 8 1 7 6
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here