Loading environment...
Problem Description
A regular box of cupcakes holds 8 cupcakes, while a small box holds 3 cupcakes. There are 28 students in a class and a total of at least 28 cupcakes. Your job is to determine how many cupcakes will be left over if each student gets one cupcake.
Input Specification
The input consists of two lines.
Output Specification
Output the number of cupcakes that are left over.
Sample Input 1
Output for Sample Input 1
Explanation of Output for Sample Input 1
The total number of cupcakes is which equals 31. Since there are 28 students, there are 3 cupcakes left over.
No comments yet. Be the first to comment!