write the algorithm to swap the value of two variable using third variable
Answers
Answered by
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
Math,
5 months ago
Psychology,
5 months ago
Hindi,
5 months ago
English,
10 months ago
History,
10 months ago