+ 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! 💖
5 Antworten
+ 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 :-)
+ 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 :-)
+ 2
Thank you all
+ 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.
+ 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