0

This program is supposed to take a number and interchange the first and the last digits and print the changed number.

This program is supposed to take a number and interchange the first and the last digits and print the changed number, But instead this prints some random numbers i can't understand why. I am new to C programming and it would be really helpful if anybody can tell me what i am doing wrong here?.... https://code.sololearn.com/cqRqI09bZZjz/?ref=app

29th Aug 2019, 5:27 AM
Sagnik Majumder2
Sagnik Majumder2 - avatar
4 odpowiedzi
+ 1
I am in no way an expert in C, but I am guessing it has something to do with the log() function you used.. why is that in there?
29th Aug 2019, 6:12 AM
Brave Tea
Brave Tea - avatar
+ 1
Brave Tea To find out the number of digits in the number.
29th Aug 2019, 6:16 AM
Sagnik Majumder2
Sagnik Majumder2 - avatar
+ 1
~ swim ~ thanks, i removed the stupid semi-colon and it worked perfectly😑😑
29th Aug 2019, 7:14 AM
Sagnik Majumder2
Sagnik Majumder2 - avatar