0

Given a no, print the diff btw the odd digit and even digit. I tried the code but the code is not working

https://code.sololearn.com/ceN2KVupebG0/?ref=app

9th Aug 2019, 3:39 PM
Geek
Geek - avatar
12 Respostas
+ 1
remove getch() that is only required in older compilers
9th Aug 2019, 3:49 PM
Aegon
Aegon - avatar
+ 1
Thankyou so much for your time and help.
9th Aug 2019, 6:14 PM
Geek
Geek - avatar
0
Thankyou! But I need to modify the program to print the difference and if the no is 76320Afk384 the output should be "invalid" . How can I do that? https://code.sololearn.com/ceN2KVupebG0/?ref=app
9th Aug 2019, 3:56 PM
Geek
Geek - avatar
0
This code is not working
9th Aug 2019, 3:56 PM
Geek
Geek - avatar
0
The above code is giving wrong answer for input 1132 the output should be 3 but it is printing different output
9th Aug 2019, 4:14 PM
Geek
Geek - avatar
0
Can you please edit the code?
9th Aug 2019, 4:14 PM
Geek
Geek - avatar
0
I fixed the code. But just for invalid output i can't code. Please help with that part
9th Aug 2019, 4:26 PM
Geek
Geek - avatar