Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x = 7;
- int y = 1;
- int addition = x + y;
- Console.WriteLine(addition);
- //adds int x and int y
- int x = 9;
- int y = 2;
- int multiplication = x * y;
- Console.WriteLine(multiplication);
- //multiplies int x and int y
- int x = 3;
- int y = 3;
- int subtraction = x - y;
- Console.WriteLine(subtraction);
- //subtracts int x and int y
- int x = 2;
- int y = 7;
- int division = x / y;
- Console.WriteLine(division);
- //divides int x and int y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement