Advertisement
martinvalchev

Exchange_Variable_Values

Jan 31st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Exchange_Variable_Values
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int a = 5;
  10.             int b = 10;
  11.  
  12.             Console.WriteLine("Before:");
  13.             Console.WriteLine($"a = {a}");
  14.             Console.WriteLine($"b = {b}");
  15.             Console.WriteLine("After:");
  16.             Console.WriteLine($"a = {b}");
  17.             Console.WriteLine($"b = {a}");
  18.  
  19.  
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement