jspencer
Regular
Can anyone think of a smart way to use the framework classes to test a number and tell me whether it's even or odd?
I can test the last character in the number and if it's 0,2,4,6,8 then the number is even. This doesn't sound very smart though.
Thanks.
I can test the last character in the number and if it's 0,2,4,6,8 then the number is even. This doesn't sound very smart though.
Thanks.