Question: Given four input integers, * return whether or not they represent an arithmetic sequence. Task 4: Given four input integers, return whether or not they

Given four input integers, * return whether or not they represent an arithmetic sequence.
Task 4: Given four input integers, return whether or not they represent an arithmetic sequence. An arithmetic sequence is has a common difference between every consecutive numbers. e.g., 1, 3, 5, 7 is an arithmetic sequence with 2 being the common difference. e.g., 10, 8, 6, 4 is an arithmetic sequence with -2 being the common difference. * public static String isArithmeticSeq(int ni, int n2, int n3, int n) { String result return result; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
