ajprincess
  • ajprincess
Plzz help. How to write a c++ program to find the maximum number from the given two numbers using swap function?
Computer Science
chestercat
  • chestercat
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

ajprincess
  • ajprincess
ajprincess
  • ajprincess
experimentX
  • experimentX
lol ... i don't know the c++ code why don't you use if else ..

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

ajprincess
  • ajprincess
bt the questions asks to use swap function only.
experimentX
  • experimentX
http://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
  • ajprincess
oops nt getting it right. :(
experimentX
  • experimentX
Ahh i wish i knew cpp code ... i haven't done programming for more than a year ..
ajprincess
  • ajprincess
it's k. Thanxxxx a lot for trying to help me.
experimentX
  • experimentX
lol does this help you http://codepad.org/9jl9b5ks
ajprincess
  • ajprincess
jst a moment checkng.
experimentX
  • experimentX
try 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/source-code/
experimentX
  • experimentX
gotta sleep 2.45 am good night!!
ajprincess
  • ajprincess
gud night.biggg thannnnxxxxx. it works nw.
experimentX
  • experimentX
yw

Looking for something else?

Not the answer you are looking for? Search for more explanations.