Slider

Thursday, 1 December 2016

Assignment Of C++ Programming

Q.No.11.Write a program to swap the values of three variables by using fourth variable?
# include<iostream.h>
# include<conio.h>
void main()
{
int a,b,c,dclrscr():
cout<<"enter first number":
cin>>s:
cout<<"Enter second number":
cin>>b:
cout<<"Enter third number":
cin>>c:
cout<<"you input no.as"<<a<<b<<"and<<c<<endl:
a=b+c
b=c+a
d=a+c
cout<<"The value after swapping are"<<a<<b<<c<<"and<<d:
getch():
}

0 comments:

Post a Comment