Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Exchange_Variable_Values
- {
- class Exchange_Variable_Values
- {
- static void Main(string[] args)
- {
- int a = 5;
- int b = 10;
- int c = a;
- Console.WriteLine("Before:");
- Console.WriteLine("a = " + a);
- Console.WriteLine("b = " + b);
- a = b;
- b = c;
- Console.WriteLine("After:");
- Console.WriteLine("a = " + a);
- Console.WriteLine("b = " + b);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement