Question: a frame abc Problem 2 Lucky Number Write a program, in C++, to compute yours lucky number from your birthday that is entered as3 integers
Problem 2 Lucky Number Write a program, in C++, to compute yours lucky number from your birthday that is entered as3 integers represent the day, month, year, respectively. The lucky number is computed as follows: 1. add the digits of the 3 integers and save them in a variable called total. 2. find the remainder of dividing total by the month in your birthday, that is your lucky number 3. print your lucky number. Sample input/ output: Enter the day, month, and year: 14 6 1992 Your lucky number is 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
