0

Apparently, the elder father has been with his son for n years, and the younger son has been father for m times.

Apparently, the elder father has been with his son for n years, and the younger son has been father for m times. See how many fates there are for fathers and how many fates there are for sons. The input data is such that the century and the century are integer numbers. The program can output two numbers, separated by a space: father's age and son's age. 20 5

21st Nov 2023, 6:13 PM
Tedi
Tedi - avatar
3 Antworten
+ 6
Tedi this appears to be one of two options: 1. homework or 2. a challenge If this is homework then please show us your attempt so we can help you ( given that there are either issues you misunderstood or syntax of your code has errors). If this is meant to be a code challenge then you have created an offtopic thread and should repost this in your own activities post as a challenge.
22nd Nov 2023, 12:08 AM
BroFar
BroFar - avatar
0
Must be an old father: 120 yr?
21st Nov 2023, 8:59 PM
Per Bratthammar
Per Bratthammar - avatar
0
I found it on the Internet and wanted to solve it, but I don’t understand it. Tell me what to use to solve it
22nd Nov 2023, 6:19 PM
Tedi
Tedi - avatar