C# arithmetic operators 🧮

preview_player
Показать описание
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();
}
}
}
Рекомендации по теме
Комментарии
Автор

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

Console.ReadKey();
}
}
}

BroCodez
Автор

Thank you bro! I’ve been self-taught with C# for 6+ years now, using it off and on, and I found your tutorials yesterday. They are so clear and concise and great for not only beginners but more experienced programmers as well.

Although I’ve been using the += operator for many years, I’ve always wondered *why* the += operator worked, and you explained it better than anyone else. Thanks bro 💯

eerice
Автор

i just started this course local

and you earned sub just for showing CW+Tab :))

zulfugarhuseynli
Автор

been following all the c# videos, ty for the quick and snappy tutorials, been very helpful :)

Milkshaco
Автор

bro explaining better than my college teacher

keak
Автор

Thanks for the video Bro. It helps a lot.

spartanranger
Автор

Hi Sir, can u guide me i hav 3 doubts.
1. Can we perform multi operation (+, -, *)using one instance method?

2.can we pass different values in instance method using same object or different object

3 In Method Overloading, can we call at time to all methods wid different parameter?


Plz ansr me Sir

kavitasharma-yrgc