Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- Console.WriteLine("Before:");
- Console.WriteLine("a = {0}", a);
- Console.WriteLine("b = {0}", b);
- a = a + b;
- b = a - b;
- a = a - b;
- Console.WriteLine("After:");
- Console.WriteLine("a = {0}", a);
- Console.WriteLine("b = {0}", b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement