Arithmetic Operators
noun
say it: “uh-RITH-meh-tik OP-er-ay-terz” /əˈrɪθmətɪk ˈɒpəreɪtərz/
The symbols that do math in C#: + - * / and % for the remainder.
What is Arithmetic Operators in C#?
Arithmetic Operators — Symbols such as +, -, *, /, and % that perform calculations.
class Bakery
{
int CookiesPerGuest(int cookies)
{
cookies++;
return cookies / 2;
}
}
In a sentence
- “The arithmetic operators * and + worked out the order total with tax.”
Level: Novice · More C# terms at this level
Updated