Tuesday 8 January 2013

Let Us C Chapter 1 Problem No:H-f


#include<iostream.h>
#include<conio.h>
void main()
{
int a,b; // inputs the numbers
cin>>a>>b;
int temp; // for swapping
temp=a;
a=b;
b=temp;
cout<<"\nThis is the swaping result\n"<<endl<<endl;
cout<<a<<endl<<b<<endl;
}

No comments:

Post a Comment

Comments please: