Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
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);
}
}
Enter to Rename, Shift+Enter to Preview
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
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content