+ 1

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! 💖

29th Nov 2020, 12:58 PM
Katarina Stanojković
Katarina Stanojković - avatar
5 ответов
+ 6
Katarina Stanojković Hello, Visit this link,hope it will helps you... https://www.google.com/amp/s/www.geeksforgeeks.org/program-for-replacing-one-digit-with-other/amp/ and try to do it yourself... happy coding :-)
29th Nov 2020, 1:02 PM
ㅤㅤㅤ
+ 4
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 :-)
29th Nov 2020, 1:02 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 2
Thank you all
29th Nov 2020, 1:27 PM
Katarina Stanojković
Katarina Stanojković - avatar
+ 2
If you are allowed to take input as a string,then I think this will work: https://code.sololearn.com/c1Qm9V40NXHW/#c 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.
29th Nov 2020, 1:30 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 1
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
29th Nov 2020, 1:10 PM
Abenezer Getnet
Abenezer Getnet - avatar