Question: please solve with java 3. Lucky Number The number 6 is consider a lucky number in some cultures. Ask user to provide two integer values,
3. Lucky Number The number 6 is consider a lucky number in some cultures. Ask user to provide two integer values, a and b. - if their sum is 6, print: Sum is 6 , lucky you! - if their difference is 6 , print: Difference is 6 , lucky you! - if the remainder of a divided by 6+ the remainder of b/6 is 6 , print: The sum of their remainder is 6 , lucky youl (hint: use: a%6+b%6=6 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
