Saturday 8 February 2014

Swapping using two variables in C++

Posted by viralnom  |  at  02:42 No comments

  1. #include<iostream.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. int a,b;
  6. clrscr();
  7. cout<<"\n\nEnter the two no=:";
  8. cin>>a>>b;
  9. cout<<"\na"<<a<<"\nb"<<b;
  10. a=a+b;
  11. b=a-b;
  12. a=a-b;
  13. cout<<"\n\na="<<a<<"\nb="<<b;
  14. getch();
  15. }
Learn Easy way of calculating sin-cos-tan values.

Tags:
About the Author

Write admin description here..

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

Related posts

0 comments:

ExactSeek Approved !!

Blogger templates. Proudly Powered by Blogger.
back to top