You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developed by shraddhatech16 , In this code we are not using any temporary variable Instead of that we have to just make equations which contains a&b With the help of these three equations i.e. 1.a=a+b ,b=a-b , & a=a-b we can run the program and swap the no.s
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a, b ;
printf("Enter the two values to swap\n");
scanf("%d%d" ,&a ,&b);
printf("before swappimg a= %d and b= %d" ,a,b );
}
About
Developed by shraddhatech16 , In this code we are not using any temporary variable Instead of that we have to just make equations which contains a&b With the help of these three equations i.e. 1.a=a+b ,b=a-b , & a=a-b we can run the program and swap the no.s