← All problemsSign in

Katie and chocolate cake

Katie loves chocolate cake. One day she and her friend Destiny decided to order w kilos of cake. Both of them also love even numbers, hence they want to divide the cake in such a way that each of the two parts weighs even number of kilos, at the same time it is not necessary that the parts are equal. Make a program to help them. ###Input: - The only line of input is the weight of the cake, w. #

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start