C program lottery
1

I have homework with the following instruction:

This program requires the student to write a C program that will generate one year of 3-digit lottery numbers between 000 and 999. When the program begins the user will be asked to buy one year of lottery tickets. It cost $1.00 for each ticket. The user will provide his or her favorite number. Each ticket purchased with have the exact same number that was provided from the user. The program will output the number of times the user’s ticket matched the daily number from the lottery. Each time the user hits the lottery he or she wins $500.00. The final output will be the number of times the user hit the resultados gana. The program will calculate and display the amount of money the user has after one-year passes.

I feel like I'm missing something or program not written correctly Thanks in advance

محمد
已發問 大約 1 年前