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();
}
In questa pagina del sito puoi guardare il video online Program to swap two variables by using third variable. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sunita Panthi 08 agosto 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 22 volte e gli è piaciuto 4 spettatori. Buona visione!