Adsense 728 * 15

Search

Swap Two Numbers using third Variable - C, C++ Program

Write a C, C++ program to swap two numbers using third variable.How to Swap Two Numbers using Third Variable.i) Input two numbers from user. Let's say user has entered two numbers 4 and 5.first = 4;second = 5;ii) Declare third variable temp which holds the value.