Jump to content

finding factors

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
martybell

martybell

    Newbie

  • Members
  • PipPip
  • 12 posts
is there a simple way to find the factors of any given number, in visual basic?

cheers,

marty

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Count from 1 to the sqrt of the number, recording both an even divisor (as detected by modulo = 0) and the resulting quotient.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog