You're given force vectors in 3D space. Each force has x, y, and z components. Your task: determine if the forces are in equilibrium (sum to zero). If all three coordinates sum to zero, output YES.
Otherwise, output NO. I'll show you how structs simplify this physics problem. Instead of tracking three separate arrays, you'll group related data into one structure. This approach makes your code cleaner and more readable.
Before reading on, think: how would you organize this data? Would you use three variables for the sum, or bundle them together? The right choice affects code clarity.