Qbasicnews.com
February 23, 2020, 06:58:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: Odd or even?  (Read 10266 times)
toonski84
__/--\__
*****
Posts: 2567



« Reply #15 on: April 03, 2003, 11:30:36 AM »

uh, yeah.  *scratches head, looks away*
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #16 on: April 04, 2003, 12:51:09 AM »

sieve of Erasthones.....
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #17 on: April 04, 2003, 02:37:38 AM »

Dutch, simply Dutch.
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #18 on: April 05, 2003, 04:08:33 AM »

I was asked this question by Mr. Howman via Email.

Pls Tell me is 999999999999999999999999999999999999999 odd or Even
************************************************
Laurence Howman 71 Muriel St Ottawa
 K1S 4C9 #613 232 8027


:*)

Anyone?
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #19 on: April 05, 2003, 04:37:05 AM »

(Hint!)
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #20 on: April 05, 2003, 05:11:53 AM »

Of course!!!! its 9!!! Even. LOL
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #21 on: April 05, 2003, 05:13:31 AM »

.
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #22 on: April 05, 2003, 05:17:31 AM »

The Newton or the Newton-John?
:*)
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #23 on: April 05, 2003, 05:33:07 AM »

.
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
toonski84
__/--\__
*****
Posts: 2567



« Reply #24 on: April 05, 2003, 10:46:26 AM »

i think he means paul newman becuase i have no clue who the hell glenn's talking about..
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #25 on: April 05, 2003, 02:30:20 PM »

a rather infamous zig instead of zagging too.)
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #26 on: April 06, 2003, 11:55:37 PM »

Jason Isaacs?

Throws some apple....
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #27 on: April 07, 2003, 02:39:22 AM »

.
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #28 on: April 08, 2003, 09:00:51 PM »

How i find out if a number is odd or even...
Code:
CLS
INPUT x
y = x / 2
y2 = y
IF INT(y) = y2 THEN
PRINT "Even"
ELSE
PRINT "Odd"
END IF

 Cool It works, too! Cool
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
toonski84
__/--\__
*****
Posts: 2567



« Reply #29 on: April 08, 2003, 10:01:14 PM »

Code:
CLS
INPUT x
y = x / 2
y2 = y
IF INT(y) = y2 THEN
PRINT "Even"
ELSE
PRINT "Odd"
END IF


Code:
input x
if x and 1 then print "Odd" else print "Even"


fastest, shortest method.  as mentioned.

here's a challenge: what's the most efficient way to generate prime numbers?  is there a non-guess and test method?
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!