Even Prize
A customer in the Personalised Gift Store is awarded a prize when their bill number is a 3-digit number and all the 3 digits in the number are even.
Write a program to identify the prize winners.
Input and Output Format:
Input consists of a number which corresponds to the bill number.
Output consists of a string that is either 'yes' or 'no'. Output is yes when the customer receives the prize and is no therwise.
Sample Input 1:
565
Sample Ouput 1:
no
Sample Input 2:
620
Sample Ouput 2:
yes
Sample Input 3:
66
Sample Ouput 3:
no

No comments: