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