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();
}
Sur cette page du site, vous pouvez voir la vidéo en ligne Program to swap two variables by using third variable. durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Sunita Panthi 08 août 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 22 fois et il a aimé 4 téléspectateurs. Bon visionnage!