5 david bought n apples m apples among n are red the rest are green ca
Question
5. David bought n apples. m apples among n are red, the rest are green. Calculate and display (1) the ratio of red apples to green apples; (2) the percentage
of green apples in all apples. n and m are input from console