Dot Net Funda provides content about Dot Net Concept From Bsic to advance.
1. Small Program/code
2.Problem Solution (Post your Problem and get solution of your problem)
3. Give suggestion about our Post.
Monday, September 17, 2018
Swap two Number without using 3rd variable in c#:
int a = 1, b = 2; Console.WriteLine("Before Swapping :"+a + "," + b); a = a + b; b = a - b; a = a - b; Console.WriteLine("After Swapping :" + a + "," + b);
No comments:
Post a Comment