In: Computer Science
Instructions
[Hint: n%10 returns the last digit and n/10 returns everything except the last digit]
Three methods for a , b and c written in java code in a single program as requested using "for loop". Please find the 3 methods code below as screenshot
Main() method Code calling the 3 methods below as screenshot
Result of first method printing " n " stars as (*)
Result of second method printing first 10 multiples of given n param
Result of all third method hasAnEvenDigit(33267) result as false as below
Result of all third method hasAnEvenDigit(7591) result as false as below