1.

CLASS 11thITTOPIC = Programming (C++)QUESTION = Write a program to enter any 2 numbers and swap it. PLZ PLZ PLZ TELL ME THE SOLUTION FOR THIS....... PLZZZZZZZZZZZITS A BIT URGENTPLZ HELPPPPPPPPPNO SPAMMING

Answer» HEYA !!

Here is your answer..

The coding for the following program is :

___________________

#include
#include

void main()
{
int a,b,c;
clrscr();
cout<<"Enter the VALUE of A: ";
cin>>a;
cout<<"Enter the value of B: ";
cin>>b;
c=a;
a=b;
b=c;
cout<<"SWAPPING the values: "<getch();
}

___________________

Hope it
HELPS...


Discussion

No Comment Found