eolymp
bolt
Try our new interface for solving problems
Problems

Increase by 2

published at 3/30/22, 6:39:29 pm

static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); int saygac = 0; string ifade = Console.ReadLine(); string[] splitifade = ifade.Split(' '); int[] r = new int[n]; for (int i = 0; i < n; i++) { r[i] = Convert.ToInt32(splitifade[i]); if (r[i] >= 0) { r[i] += 2; } saygac++; if (saygac != n) { Console.Write(r[i] + " "); } else { Console.Write(r[i]); } }
}

published at 1/16/23, 2:27:44 pm

Sayad_Salmanov1<coding1 sayad looser poor sayad 😂😂😂😂