Make a program that take two integers and Swap their Values
#include <iostream> using namespace std; int main() { int a,b; cout<<"Enter first Integer"<<endl; cin>>a; cout<<"Enterr second Integer"<<endl; cin>>b; a=a+b; b=a-b; a=a-b; cout<<"Swapping of first integer is\n"<<a<<endl; cout<<"Swapping of Second number is\n"<<b<<endl; }
No comments:
Post a Comment