c#, Apples for Friends, Basic Concepts, 10.2 Practice is very confusing
I have attached the question and the "given broken program", can someone steer me in the right direction? Increment & Decrement Operators Tom, Bob and James have 2,3 and 4 apples accordingly. The given program should equally redistribute the apples among them, but something is wrong. Fix the program. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { //your code goes here int applesTom = 3; int applesBob = 2; int applesJames = 4; //change the code Console.WriteLine(--applesTom); Console.WriteLine(applesBob++); Console.WriteLine(applesJames--); } } }