Question: I would like help understanding this. Given four integer arguments (int a, int b, int c, int d), write Match if and only if at
I would like help understanding this.
Given four integer arguments (int a, int b, int c, int d), write "Match" if and only if at least three of the four values are the same. Otherwise write "No Match". Input Format Four integer values - a, b, c, and d Constraints Values a, b, c, and d can be any integer value. Output Format Print the words "Match" or "No Match" depending on whether or not 3 of the 4 values are equal. Sample Input 0 3 5 5 5 Sample Output 0 Match Explanation o The input has 3 values that match - 5, so "Match" is printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
