Remarks:- Here I am using Dev C++ IDE v5.11, I am writing code over this IDE. Please make sure your version before running my code over your machine .
This example contains two different techniques to swap numbers. The first program uses a temporary variable to swap numbers, and in the second program doesn’t use temporary variables.
printf(“Enter First Number”);
printf(“Enter Second Number”);
printf(“First Number is %d”,firstNumber);
printf(“Second Number is %d”,secondNumber);