Advertisement
-Annie-

03.ExchangeVaribaleValues

Jun 10th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. namespace Homework
  2. {
  3.     using System;
  4.  
  5.     public class ExchangeVariableValues
  6.     {
  7.         public static void Main()
  8.         {
  9.             int a = int.Parse(Console.ReadLine());
  10.             int b = int.Parse(Console.ReadLine());
  11.             int c = a;
  12.             a = b;
  13.             b = c;
  14.             Console.WriteLine(a);
  15.             Console.WriteLine(b);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement