+ 1
Code coach problem...
https://www.sololearn.com/coach/6?ref=app Hello... Actually I am confused in code coach problems please guide me solve these problems how it is done.... In python programming language
1 Respuesta
0
For convenient, let me copy the full task description here.
You have a bowl on your counter with an even number of pieces of fruit in it. Half of them are bananas, and the other half are apples. You need 3 apples to make a pie.
Task
Your task is to evaluate the total number of pies that you can make with the apples that are in your bowl given to total amount of fruit in the bowl.
Input Format
An integer that represents the total amount of fruit in the bowl.
Output Format
An integer representing the total number of whole apple pies that you can make.
Sample Input
26
Sample Output
4
From the sample input (26), we can determine there are 13 bananas and 13 apples.
To make one pie, three apples are needed.
So you can make 4 pies (sample output) and 1 apple left behind.
There is a floor division (//) can help you...