/* C program to swap two number. */
We need to exchange the value of variable. i.e if there are two variable x, y. and x = 5, y= 6 then our program should make x=6, y=5.
We can store the value of x in a temp variable ( temp = x ). now we can overwrite the variable x by y ( x = y ). Finally be must copy the the temp value at y ( y = temp ).
Skills Required :
Knowledge about variable storage.
Written with ♥ from Mangesh.
|1||C program to check number is even or odd.|
|2||C program to swap to number.|
|3||C program to check whether the year is leap year or not.|
|4||C program to check whether enter alphabet is vowel or not.|