How can I write a one-line pseudocode to check if an odd integer number is written in reversed order still remains odd, example 1245 to 5421 is still odd, but 2135 to 5312 is even. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I write a one-line pseudocode to check if an odd integer number is written in reversed order still remains odd, example 1245 to 5421 is still odd, but 2135 to 5312 is even.

15th Jun 2016, 6:56 AM
Abdulai Torfik
2 Answers
+ 1
I think pseudocode doesnt need to be in one line.
15th Jun 2016, 8:27 AM
Klodian Lula
Klodian Lula - avatar
0
using %, reminder u can do that. also need to write odd even condition.
15th Jun 2016, 10:12 AM
VISHAL PRAJAPATI
VISHAL PRAJAPATI - avatar