Question: 6.27 duringLab: Last Digit 6.27 duringLab: Last Digit Given three ints, a b c, return true if two or more of them have the same
6.27 duringLab: Last Digit
6.27 duringLab: Last Digit Given three ints, a b c, return true if two or more of them have the same rightmost digit. The ints are non-negative. Note: the % "mod" operator computes the remainder, e.g. 17% 10 is 7 lastDigit(23, 19, 13) - true lastDigit(23, 19, 12) false last Digit(23, 19,3) true 287212.1778258 LAB ACTIVITY 6.27.1: during Lab: Last Digit 0/2 Main.java Load default template... 1 public class Main { public boolean lastDigit(int a, int b, int c){ /* Type your code here. */ } 5 6 7 8 9 10 11 12 // this method not used but needed for testing public static void main(String[] args) { } Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
