SyntaxFix
Write A Post
Hire A Developer
Questions
public static void main(String[] args) { System.out.println(lastDigit(2347)); } public static int lastDigit(int number) { //your code goes here. int last = number % 10; return last; }
7