Given a four digit number, determine if result that is odd


Given a four digit number, determine if the digits of that number, when added together, gives a result that is odd or even. If they are odd, print "Odd!" to the screen. If they are even, print "Even!" to the screen. For example, if you have the number 1436 then you should do 1+4+3+6=14. You should prompt the user for the four digit number. Hint: Try using the modulus with the number 10 in order to help split up the four digit number. (123%10=3, 34%10=4, 3456%10=6, etc.)

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Given a four digit number, determine if result that is odd
Reference No:- TGS096277

Expected delivery within 24 Hours