Computer Science, asked by shreyashbhatt44, 11 months ago

write the algorithm to swap the value of two variable using third variable​

Answers

Answered by vaishnavik052
0

Answer:

#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