C Program to Swap two Numbers (4 ways)
In this article, you will learn to swap two numbers in C programming. Examples : Input : x = 10, y = 20; Output : x = 20, y = 10 Input : x = 50, y = 100 Output : x = 100, y = 100 Algorithm : Assign x to a temp variable, i.e., temp =… Read More »