How many apples?
Two girls, Christine and Gemma, each have a number of apples. Gemma always has more apples than Christine.
If there was 12 apples and Gemma had 4 apples more than Christine, how many apples do they both have?
Answer
Christine has 2 apples
Gemma has 10 apples
You are to write a program which will ask the user the total number of apples and how many more apples Gemma will have. It will then output how many apples each girl has. For example
How many apples in total? 20
How many apples does Gemma have more? 3
Christine has 7 apples
Gemma has 13 apples
How many apples in total? 58
How many apples does Gemma have more? 14
Christine has 15 apples
Gemma has 43 apples

You need to log in or create an account to submit code!











