Swapping of two numbers in c with temporary variable
Answers
Answered by
0
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,temp;
printf("Enter two number for swapping");
scanf("%d%d",&a,&b);
temp=a;
a=b;
b=temp;
printf("After swapping= %d %d",a,b);
getch();
}
Similar questions