Increment Decrement 2
CodeChefOpen on judge ↗
Chef is learning C language.At this moment he stucked in increment and decrement operation. Operation ++ increases the value of variable C by 1. Operation -- decreases the value of variable C by 1. A statement in C language is a sequence, consisting of exactly one operation and one variable x. The statement is written without spaces, that is, it can only contain characters "+", "-", "C". Exec
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.
Sign in to chat with the tutor and save your progress.
Sign in to start