Plzz help. How to write a c++ program to find the maximum number from the given two numbers using swap function?
@eSpeX,@annas
@experimentX
lol ... i don't know the c++ code why don't you use if else ..
bt the questions asks to use swap function only.
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
oops nt getting it right. :(
Ahh i wish i knew cpp code ... i haven't done programming for more than a year ..
it's k. Thanxxxx a lot for trying to help me.
jst a moment checkng.
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/
gotta sleep 2.45 am good night!!
gud night.biggg thannnnxxxxx. it works nw.
yw
Join our real-time social learning platform and learn together with your friends!