All Data For Free
Pages
Home
Watch Full WWE Episodes of Raw and Smackdown
Contact Us
Copyright Policy
Sunday, 27 November 2011
C++ Program For Swap Two Valuse With Out Third Variable
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
cout<<"Enter 1st value";
cin>>a;
cout<<"Enter 2nd value";
cin>>b;
a=a+b;
b=a-b;
a=a-b;
cout<<"New value of a="<<a<<endl;
cout<<"New value of b="<<b;
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment