Question: Write a program that accepts two integer arrays as input from the user and prints out the maximum absolute difference between two elements in each
Write a program that accepts two integer arrays as input from the user and prints out the maximum absolute difference between two elements in each array. You should have two functions beside main(). One for reading in the array elements from the user, and second one for finding maximum absolute difference between two elements in that array. In the main() function should handle printing the result. Example: Enter Array 1 Size: 3 Enter Array 1: 3 -7 0 Enter Array 2 Size: 5 Enter Array 2: 2 5 1 3 8 The maximum absolute difference in Array 1: 10 The maximum absolute difference in Array 2: 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
