This seems to return false, but I have no idea why. AFAIK if you put in an even number, it should hit the if statement, come up with no remainder and so return true! Sadly it returns false every time. I know this is very simple stuff guys but please don't make fun of me I learn better when I can ask stupid questions and you only have to ask them once!
<grin style="MONSTROUS!"> Who but a Brit would care? </grin>
Because the House of Tudor was the monarchy in the 16th century. I would have thought that as an educated person you knew that, actually. The correct answer is, of course, Windsor.
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Oh, come on, Philip! I knew all that! Just having fun.
I even knew that the name was originally "Tewdwr" and/or "Tudur".
(Have to admit I don't know where George V came up with the name "Windsor" other than, presumably, from Windsor Castle. Did it ever have any actual royal associations before that?)
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
(Have to admit I don't know where George V came up with the name "Windsor" other than, presumably, from Windsor Castle. Did it ever have any actual royal associations before that?)
My understanding is that it was from Windsor castle. The name schange was needed in a hurry to get rid of the German surname that Victoria acquired for the family when she married Albert - given that George had just gone to war with his German cousin.