C++ Program to Swap Two Numbers
This example contains two different techniques to swap numbers in C programming. The first program uses temporary variable to swap numbers, whereas the second program doesn’t use temporary variables.
Programe :
#include <iostream>
using namespace std;
int main()
{
int a = 7, b = 10, temp;
cout << “Before swapping.” << endl;
cout << “a = ” << a << “, b = ” << b << endl;
temp = a;
a = b;
b = temp;
cout << “\nAfter swapping.” << endl;
cout << “a = ” << a << “, b = ” << b << endl;
return 0;
}
OutPut :
Before swapping.
a = 7, b = 10
After swapping.
a = 10, b = 7
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/el/register-person?ref=PORL8W0Z
Hi, i think that i saw you visited my blog so i got here to go back the want?.I am trying to find things to improve my website!I assume its ok to use some of your ideas!!
Thank you for sharing your info. I truly appreciate your efforts and I am waiting for your next post thank you once again.
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?
I was wondering if you ever considered changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?
Simply want to say your article is as astonishing. The clearness on your post is simply spectacular and i can assume you are knowledgeable in this subject. Well together with your permission allow me to grab your RSS feed to stay up to date with forthcoming post. Thank you a million and please keep up the rewarding work.
You’re so cool! I don’t suppose I’ve read something like this before. So good to find somebody with some original thoughts on this subject. Really.. thanks for starting this up. This site is something that is needed on the web, someone with some originality!
I think the admin of this website is actually working hard for his web site, as here every stuff is quality based information.
Superb website you have here but I was curious about if you knew of any user discussion forums that cover the same topics talked about in this article? I’d really love to be a part of group where I can get comments from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Bless you!
Pretty great post. I simply stumbled upon your blog and wanted to mention that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing in your feed and I hope you write again soon!
Undeniably believe that that you stated. Your favourite justification appeared to be at the internet the simplest thing to keep in mind of. I say to you, I definitely get irked whilst other people consider concerns that they plainly do not realize about. You controlled to hit the nail upon the top as smartly as defined out the whole thing with no need side effect , folks can take a signal. Will likely be back to get more. Thank you
Outstanding quest there. What occurred after? Good luck!
Hi there friends, nice piece of writing and pleasant arguments commented here, I am actually enjoying by these.
Hi there, I found your web site by the use of Google at the same time as searching for a similar topic, your site got here up, it looks good. I have bookmarked it in my google bookmarks.
I visited many sites except the audio quality for audio songs current at this web site is in fact wonderful.
fhdpqeyxp yjnku uxmyhnr qxsf cnmrstqoxxhqxfm
Having read this I thought it was very informative. I appreciate you finding the time and effort to put this informative article together. I once again find myself spending a significant amount of time both reading and commenting. But so what, it was still worth it!
535232 592887Really informative post. Your current Site style is awesome as well! 800614
I support it in principle can you drink and take viagra The antidepressant venlafaxine Effexor, a selective serotonin reuptake inhibitor, is one of the most common drugs used to treat these hot flashes
376892 985418Hello, Neat post. There is a difficulty together with your website in internet explorer, could test thisK IE nonetheless is the marketplace leader and a large portion of men and women will leave out your outstanding writing due to this difficulty. 472798
constantly i used to read smaller articles or reviews which also clear their motive, and that is also happening with this piece of writing which I am reading at this place.
608862 698936This is often a wonderful blog, could you be interested in working on an interview about just how you developed it? If so e-mail myself! 850872
732379 856136You produced some decent points there. I looked on the net towards the issue and located a lot of people go together with together together with your internet web site. 675082
840111 820110Oh my goodness! an outstanding post dude. Thank you Nevertheless Im experiencing problem with ur rss . Do not know why Cannot register for it. Could there be any person acquiring identical rss difficulty? Anybody who knows kindly respond. Thnkx 863401
562235 490880I enjoyed reading your pleasant web site. I see you offer priceless info. stumbled into this internet site by chance but Im sure glad I clicked on that link. You surely answered all the questions Ive been dying to answer for some time now. Will undoubtedly come back for a lot more of this. 371650
540587 992179I likewise conceive so , perfectly written post! . 798927
259570 735355Some truly amazing content material on this web internet site , thankyou for contribution. 820507
585178 690478I want going to comment as this posts a bit old now, but just wanted to say thanks. 227543
161293 459221Hey, are you having issues along with your hosting? I needed to refresh the page about million times to get the page to load. Just saying 988975
805456 860430Perfectly indited content material , thanks for selective data . 302193
661915 109074 You should take part in a contest for among the best blogs on the internet. I will recommend this internet site! 306181
574595 660618You need to take part in a contest for one of the very best blogs on the internet. I will recommend this website! 444456
999005 448447You could certainly see your enthusiasm in the work you write. 826580
754176 392048my grandmother is always into herbal stuffs and she always say that ayurvedic medicines are the very best stuff 515573
fenofibrate usa tricor pills fenofibrate pills
816628 524454Exceptional blog here! Also your site loads up quick! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as swiftly as yours lol 883066
you are actually a just right webmaster. The web site loading velocity is incredible. It sort of feels that you are doing any unique trick. In addition, The contents are masterpiece. you have performed a wonderful process in this topic!
cialis savings card order sildenafil 100mg sale buy sildenafil pills
ketotifen 1 mg over the counter zaditor 1mg without prescription tofranil without prescription
minoxidil buy online order cialis pills otc ed pills that work
precose 50mg cheap order precose 25mg without prescription fulvicin 250mg cheap
buy generic aspirin levofloxacin 500mg pill order zovirax without prescription
buy melatonin online cheap aygestin 5 mg usa danazol online order
fludrocortisone generic florinef over the counter buy generic loperamide over the counter
purchase monograph order colospa 135 mg buy pletal without a prescription
purchase prasugrel pills buy detrol generic tolterodine price
mestinon 60 mg price mestinon medication cost rizatriptan 10mg
order ferrous sulfate generic buy ferrous generic pill betapace
For latest news you have to pay a visit world-wide-web and on world-wide-web I found this website as a best website for most up-to-date updates.
order telmisartan 80mg generic order molnupiravir 200mg without prescription order molnupiravir 200mg sale
order cenforce 100mg generic generic naprosyn chloroquine 250mg brand
provigil pills buy deltasone 5mg generic purchase prednisone pills
What a stuff of un-ambiguity and preserveness of precious familiarity regarding unexpected feelings.