C# arithmetic operators 🧮

C# arithmetic operators 🧮

36.480 Lượt nghe
C# arithmetic operators 🧮
C# arithmetic operators tutorials example explained #C# #arithmetic #operators using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { int friends = 5; friends = friends + 1; //friends += 1; //friends++; //friends = friends - 1; //friends -= 1; //friends--; //friends = friends * 2; //friends *= 2; //friends = friends / 2; //friends /= 2; //int remainder = friends % 2; //Console.WriteLine(remainder); Console.WriteLine(friends); Console.ReadKey(); } } }