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:\na = {0}\nb = {1}", a, b);
- int c = b;
- b = a;
- a = c;
- Console.WriteLine("After:\na = {0}\nb = {1}", a, b);
- }
- }
Add Comment
Please, Sign In to add comment