Question: please write it in a simple way with C++ program Problem 2 Lucky Number Write a program, in C++, to compute yours lucky number from
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: i add the digits of the 3 integers and save them in a variable called otal find the remainder of dividing total by the month in your birthday that is your lucky number. print your lucky number. Sample input/output: Enter the day, month, and year: 14 6 1992 Your lucky number 1s 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
