сложение с присваиванием

a += 5 аналогично a = a + 5
Скрыть

Показать

Копировать
  Main.cs  
  • using System;
  •  
  • class Program {
  •  public static int Main() {
  •   int a = 10;
  •   a+=5;
  •   Console.WriteLine(a);
  •   Console.ReadKey();
  •   return 0;
  •  }
  • }
15