write a program in c to swap the value of variable a and b without using a third variable.
Answers
Answered by
0
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf(“ enter the value of a is = “);
scanf(“%d”,&a);
printf(“\n enter the value of b is = “);
scanf(“%d”,&b);
getch();
}
output
enter the value of a is = 2
enter the value of b is = 3
Similar questions