Q/Write code c# or c++.. to swap each digits in any number ...for example. .you enter 1234? .. the results of code = 1243.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Q/Write code c# or c++.. to swap each digits in any number ...for example. .you enter 1234? .. the results of code = 1243..

swap each digits in number

21st Jan 2017, 9:10 AM
jabar
jabar - avatar
6 Answers
+ 6
So, i wrote (hard)* code for you. You can look at it here: https://code.sololearn.com/c74s6A3niCLX/#cpp I commented it so you should see how it works. If you dont know/understand something - ask here
21st Jan 2017, 9:32 AM
WittyBit
WittyBit - avatar
+ 5
Wait. What do you mean? You have positions, and you should swap numbers on them?
21st Jan 2017, 9:15 AM
WittyBit
WittyBit - avatar
+ 1
yes.. Michael ermishin
21st Jan 2017, 9:17 AM
jabar
jabar - avatar
0
ffc Vv hgnvvvvdd
21st Jan 2017, 9:15 AM
Dilyar Salih1
Dilyar Salih1 - avatar
0
. I will try to understand it... . thanks...Michael Ermishin
21st Jan 2017, 10:10 AM
jabar
jabar - avatar
- 1
gscbvhh gn. gzh. BBB. BGH b hgv VG JB.
21st Jan 2017, 9:18 AM
Dilyar Salih1
Dilyar Salih1 - avatar