My initial problem has been solved, i have another question, is it possible for me to check whether each digit of an entered number is odd or even? for example 121 was entered' how do I apply (number % 2 == 0) command to each separate digit?
Basicaly: I want to find out if the sum of all the even digits equalls the sum of all the odd digitsHello, I am trying to create a program that can tell me if the number I type in can be divided by 11 without any remains.
For example if i type in 121 it will answer "yes" while if I type in 139 it will say no.
I have started learning c around two hours ago and have been aiming to make this program all along...unfortunately i have failed.
If someone has the time could you please write this simple program for me and explain any complicated parts.
Thank you for your attention,