Program to Find Swap Numbers Using Temporary Variable

[ad_1]

Program to Find Swap Numbers Using Temporary Variable
#include

int main() {
   int x, y, temp;
   printf("Enter the value of x and y: ");
   scanf(
   printf("Before swapping x

   /*Swapping logic */   temp = x;
   x = y;
   y = temp;
   printf("After swapping x
   return 0;
}
Program Output:

[ad_2]

Please follow and like us:
Content Protection by DMCA.com