wap to swap two number using third variable?
Answers
Answered by
3
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,temp;
printf("enter the 2 numbers");
scanf("%d%d",&a,&b);
printf("before swaping%d & %d ",a,b);
temp=a;
a=b;
b=temp;
printf("after swaping%d & %d",a,b);
getch();
}
Explanation:
Similar questions