Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
swap using xor
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int first, second; first = 100; second = 200; //swap numbers using XOR first = second^first; second = second^first; first = first^second; Console.WriteLine("first = " + first); Console.WriteLine("second = " + second); } } }
run
|
edit
|
history
|
help
1
latest Iequatable
Reverse String and Binary Search of floating point values
test1
Sum
Compress in C#
dgd dy retert
factorial ncr
Homework3
Practice run
Before Number big