Code where numbers are changing place | Sololearn: Learn to code for FREE!


Code where numbers are changing place

Can someone help me how to write code which is changing place to numbers? For example: I write 49 and code is replacing 94. I need help fast, thank you! 💖

11/29/2020 12:58:28 PM

Katarina Stanojković

5 Answers

New Answer


Katarina Stanojković Hello, Visit this link,hope it will helps you... and try to do it yourself... happy coding :-)


Im not sure what kind of thing you are talking about, but give you an hint. Go to your browser and search how to reverse numbers and thank me later :-)


Thank you all


If you are allowed to take input as a string,then I think this will work: But I think you should learn c language more.You have only gained 15xp which means you have completed only 3 lesson(assuming).You need to learn more about variable and operation.So please focus on your learning and please use google before asking us as 0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ mentioned.


use swap function for example in c++: int a,b,temp; cin>>a>>b; // a=4, b=9 temp=a; a=b; b=temp; cout<<a<<b; // 94 I think you can change it into C