- <actual variable holder> = <operational expression>
- Example: i=i+10;
- i - actual holder
- i+10 - operational expression
- using System;
- namespace forgetCode
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Simple arithmetic
- int i = 10;
- Console.WriteLine(i * i);
- // New value assigned to same variable (Right to left assignment)
- int j = 20;
- j = j + 10;
- Console.WriteLine(j);
- int k = 100;
- k = k % 10;
- Console.WriteLine(k);
- }
- }
- }
- 100
- 30
- 0