what symbol is used to square a number I thought it would be this symbol ^ but that does not work from what I've try. Also is it possible to just have display odd integers. Even if some one new a site that would explain it that would be great. thnxs
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted
0
Take a look at the Math class. Odd integers are the ones that have a remainder when you divide them by 2. If ( x % 2 == 1 ) // then it's odd