Question: Write a function to find the maximum number of pieces that can be formed by making n cuts and how many people we can feed
Write a function to find the maximum number of pieces that can be formed by making n cuts and how many people we can feed following these constral 1. The function receives integer n (number of cuts). 2. The function's name should be Cut Your Pizza. 3. The function returns the maximum number of pieces that can be made from one pizza using the number of cuts. 4. The function returns the maximum number of people that we can feed by making n cuts. Also complete the main function to call your Cut Your Pizza function and print out the maximum number of pieces and the maximum number of people. Hint: a plece for each person
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
