Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

C# *= Math Operator

amiedd
942 views

C# *= Math Operator

The binary multiplication assignment operator. Cospaly, Code and Games - www.amiedd.com

using System;
class MathClass
{
static void Main()
{
int a = 10;
a *= 6;
Console.WriteLine(a);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants