Question: Problem 2 Lucky Number Write a program, in C++, to compute yours lucky number from your birthday that is entered as 3 integers represent the

 Problem 2 Lucky Number Write a program, in C++, to compute

Problem 2 Lucky Number Write a program, in C++, to compute yours lucky number from your birthday that is entered as 3 integers represent the day, month, year, respectively. The lucky number is computed as follows: add the digits of the 3 integers and save them in a variable called total. 2. 1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!