A program to swap two variables entered by the user by using third variable. Learn coading, keep going and increasing knowledge.
Here is the code:
void main()
{
int a,b,c;
printf("Enter the first number\t");
scanf("%d",&a);
printf("Enter the second number\t");
scanf("%d",&b);
printf("\nThe numbers before swapping are first=%d and second=%d",a,b);
c=b;
b=a;
a=c;
printf("\nThe numbers after swapping are first=%d and second=%d",a,b);
getch();
}
Nesta página do site você pode assistir ao vídeo on-line Program to swap two variables by using third variable. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Sunita Panthi 08 Agosto 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 22 vezes e gostou 4 espectadores. Boa visualização!