Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

C# arithmetic operators 🧮

54K views on YouTube

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();
}
}
}