Facebook
From ERSIN KAZIOĞLU, 3 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 126
  1. using System;
  2.  
  3. public class Test
  4. {
  5.         public static void Main()
  6.         {
  7.                
  8.                         int a;
  9.                         Console.WriteLine("Please give a number as 1st variable:");
  10.                         a = Convert.ToInt32(Console.ReadLine());
  11.                         int b;
  12.                         Console.WriteLine("Please give a number as 2st variable:");
  13.                         b = Convert.ToInt32(Console.ReadLine());
  14.                         Console.WriteLine("The value of the 1st variable:{0}", b);
  15.                         Console.WriteLine("The value of the 2st variable:{0}", a);
  16.                
  17.         }
  18. }
  19.