C program to swap a two value without using 3rd variable, arithmetic operator

C program to swap a two value without using 3rd variable, arithmetic operator


#include 
#include 
void main()
{
int a,b;
clrscr();
printf("\n Enter Value For First Number : -");
scanf("%d",&a);
printf("\n Enter Value For Second Number: -");
scanf("%d",&b);
aA=bA=aA=b;
printf("\n\n First Number = %d",a); 
printf("\n Second Number = %d",b); 
getch();
}


No comments:

Post a Comment