Hello, This is a first Post of Villan Tech and we are going to start with a C Program because exams are near and this series of program will surely going to help the students to rock in their exams.
Today,we are going to make a Program for swapping to numbers but wait before going to it have you checked these programs ? if not first check them out and then we should move forward...
![]() |
Swap Of 2 Numbers #C Program 1 |
Today,we are going to make a Program for swapping to numbers but wait before going to it have you checked these programs ? if not first check them out and then we should move forward...
Programming With C #1 Calculator
Hope you have enjoyed those programs,now moving forward to this program.
So how actually what we will do in this program to swap to numbers.We will simply accept two numbers from the user and will take a variable (temp)
temp=number_1
number_1=number_2
number_2=temp
And yes we are done..!!! Below is the code for it and it will make easy for you to understand it in more easy way...
Code
Output Preview
![]() |
Privew |