I am trying to write a C programming code to factor between 1-100. Can anyone give some hints/pointers to solve this?
2006-11-21
23:41:59
·
4 answers
·
asked by
tbwada
1
in
Computers & Internet
➔ Programming & Design
I need to factor a prime number that is appeard. For example, if the I enter a number 24, its factors are 2, 2, 2, 3.
2006-11-22
00:10:06 ·
update #1
I could not explain the question, so this is the original question...
In this project you'll create a program that asks the user to enter a number from 1 to 100. If the
user enters a number outside of the range, you must ask him to try again. Then you should factor
this number. For example, if the user enters 24, its factors are 2, 2, 2, 3 because 24 = 2*2*2*3.
You should only have prime numbers appearing as factors. Print out all of the factors for the
number neatly.
2006-11-22
00:54:50 ·
update #2