+ 6

In natural number delete the last digit and display it in the first place ... for example 64583 will be 36458

27th Apr 2020, 11:45 AM
Ismaeil Alrewany
Ismaeil Alrewany - avatar
4 Antworten
+ 6
Thank you bro
27th Apr 2020, 1:56 PM
Ismaeil Alrewany
Ismaeil Alrewany - avatar
+ 3
int f(int x) { int res=1; while(res<=x) { res*=10; } return res; } //n is the start number x=n%10; n/=10 n+=f(n)*x
27th Apr 2020, 12:58 PM
Alexander Thiem
Alexander Thiem - avatar
27th Apr 2020, 1:04 PM
Alexander Thiem
Alexander Thiem - avatar
+ 3
you are welcome
27th Apr 2020, 2:03 PM
Alexander Thiem
Alexander Thiem - avatar