C# *= Math Operator
amiedd
5,775 views
C# *= Math Operator
The binary multiplication assignment operator. Cospaly, Code and Games - www.amiedd.com
1
2
3
4
5
6
7
8
9
10
11
12
using System;
class MathClass
{
static void Main()
{
int a = 10;
a *= 6;
Console.WriteLine(a);
}
}
C# *= Math Operator
The binary multiplication assignment operator.
The * operator is predefined for numeric types to do mathmatical multiplication. The *= operator can't be overloaded directly, but user-defined types can overload the * operator
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.