Skip to main content

Posts

Showing posts from July, 2025

Class 12

Operators in C# In C#, operators are  symbols that perform operations on variables and values, forming the basis of expressions and enabling various computations and comparisons .   1. Arithmetic Operators Arithmetic operators are used to perform mathematical operations such as addition, subtraction, multiplication, and division. Operator Name What It Does Example + Addition Adds two numbers a + b - Subtraction Subtracts one number from another a - b * Multiplication Multiplies two numbers a * b / Division Divides one number by another a / b % Modulus Gives the remainder of division a % b Use: For doing calculations like total marks, average, or price after discount.     2. Comparison (Re...