"If the input is: 611408
Then, Leo would have eaten 6 pounds of meat and 11 bones. Una would have eaten 4 pounds of meat
and 8 bones."
How do I make a program that can do that to a 6 digit integer??
Convert the integer to a string, parse the string into the 4 constituent parts needed as new strings. The pattern is 1 digit, 2 digits, 1 digits and 2 digits. Then convert the 4 strings back into integers.
Or parse the full string into substrings with the same pattern and wave your wand to get 4 integers.
There are other ways to do it.
They all require a bit of time and thought to designing the program before code is written.
the program needs to work where any given 6-digit integer ABBCDD will output as leo ate A pounds of meat and BB bones and una ate C pounds of meat and DD bones