A community for students. Sign up today!
Here's the question you clicked on:
 0 viewing
 2 years ago
Plzz help.
How to write a c++ program to find the maximum number from the given two numbers using swap function?
 2 years ago
Plzz help. How to write a c++ program to find the maximum number from the given two numbers using swap function?

This Question is Closed

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.1lol ... i don't know the c++ code why don't you use if else ..

ajprincess
 2 years ago
Best ResponseYou've already chosen the best response.0bt the questions asks to use swap function only.

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.1http://www.cplusplus.com/reference/algorithm/swap/ it just a simple function that swaps content ... if a>b swap(a, b) end if echo "greatest is " b " smallest is "a

ajprincess
 2 years ago
Best ResponseYou've already chosen the best response.0oops nt getting it right. :(

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.1Ahh i wish i knew cpp code ... i haven't done programming for more than a year ..

ajprincess
 2 years ago
Best ResponseYou've already chosen the best response.0it's k. Thanxxxx a lot for trying to help me.

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.1lol does this help you http://codepad.org/9jl9b5ks

ajprincess
 2 years ago
Best ResponseYou've already chosen the best response.0jst a moment checkng.

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.1try changing the values of x and y ... though i'm not sure what's the purpose of this ... finding bigger number is basic algorithm that you do with "Hello world" still try asking others ... and also google .. i don't think it's here ... http://www.mybestnotes.co.in/sourcecode/

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.1gotta sleep 2.45 am good night!!

ajprincess
 2 years ago
Best ResponseYou've already chosen the best response.0gud night.biggg thannnnxxxxx. it works nw.
Ask your own question
Ask a QuestionFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.