using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Swapingtwonumberusingtempvariable
{
class Program
{
static void Main(string[] args)
{
int a, b, temp;
Console.WriteLine("Please Enter First Number");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please Enter Second Number");
b = Convert.ToInt32(Console.ReadLine());
temp = a;
a = b;
b = temp;
Console.WriteLine(" After Swaping First Number"+a);
Console.WriteLine(" After Swaping Second Number"+b);
Console.ReadLine();
}
}
}This code snippet for swaping two number taking temp variable.
