Task 1 – Name and count all expressions and all statements
Name and count all expressions and all statements in the code snippet below:
Tower mainTower = new(position: new Vector2(5, 5)); for (int level = 1; level <= mainTower.MaxLevel; level++) { double upgradeCost = 100 * Math.Pow(1.5, level - 1); Console.WriteLine($"Upgrading to level {level} costs {upgradeCost} gold"); if (playerGold >= upgradeCost) { mainTower.Upgrade(); playerGold -= upgradeCost; } }