Question: Java Program Once there was a lottery system started. In every lottery ticket, there was a number based on which winner was selected. One of
Java Program
Once there was a lottery system started. In every lottery ticket, there was a number based on which winner was selected. One of the hacker hacked the algorithm that was used to select the winner. The algorithm was simply easy. According to this algorithm, all the sub numbers that are derived from the lottery number must remain the sub number of the lottery number even if they are reversed. If these criteria are satisfied then the lottery number is selected as the winner. Your task is to create a program to identify whether the given lottery number wins or not.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
