+ 1

Plzzz tell me why this program nt wrking.....

https://code.sololearn.com/c9DAI6NKsQ74/?ref=app Input: 1987 output: 8719

23rd May 2018, 2:10 PM
Harsh Agrawal
Harsh Agrawal - avatar
10 Answers
+ 2
Math.pow function return a double value that you want implicitally convert in int in your code but this mean a data loss and java complaint about it... you have to tell to java that you want explicitally convert they like: (int)Math.pow(10, digits) for any pow occurance
23rd May 2018, 2:47 PM
KrOW
KrOW - avatar
+ 5
you welcome
23rd May 2018, 5:17 PM
Arun Tomar
Arun Tomar - avatar
+ 3
https://code.sololearn.com/cG74T53smLyw/?ref=app As KrOW say your program has a problem of type conversion..
23rd May 2018, 4:07 PM
Arun Tomar
Arun Tomar - avatar
+ 3
I'm still at my college.. when i get back i send you Harsh Agrawal
19th Jun 2018, 9:06 AM
Arun Tomar
Arun Tomar - avatar
+ 2
thnxxx KrOW and Arun Tomar
23rd May 2018, 4:52 PM
Harsh Agrawal
Harsh Agrawal - avatar
+ 2
You are welcome 👍👍👍👍
23rd May 2018, 4:54 PM
KrOW
KrOW - avatar
+ 2
Harsh Agrawal you can do in so many way. used split function from the second last the rest part do the same as you do in above program.. after you complete it add the split part to the rest of the sorted split part.....
19th Jun 2018, 9:02 AM
Arun Tomar
Arun Tomar - avatar
+ 1
Arun Tomar if i want to display my dis code as like dis so what can i do??? Input: 12345 Output: 45312
19th Jun 2018, 3:43 AM
Harsh Agrawal
Harsh Agrawal - avatar
+ 1
Arun Tomar okkkk bro
19th Jun 2018, 9:06 AM
Harsh Agrawal
Harsh Agrawal - avatar
0
Arun Tomar can u do it in my code!!!!
19th Jun 2018, 9:03 AM
Harsh Agrawal
Harsh Agrawal - avatar