Program to swap two variables by using third variable.

Publicado el: 08 agosto 2019
en el canal de: Sunita Panthi
22
4

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();
}


En esta página del sitio puede ver el video en línea Program to swap two variables by using third variable. de Duración hora minuto segunda en buena calidad , que subió el usuario Sunita Panthi 08 agosto 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 22 veces y le gustó 4 a los espectadores. Disfruta viendo!