Hey thanks for your help, i figured a program out late last night!
thanks
ryan...
User Profile
Collapse
-
I'm not sure if there was meant to be an upper limit but there was none given....Leave a comment:
-
I just recently learned about arrays but wouldn't i need to know how many prime integers there were to start the array?...Leave a comment:
-
Thanks For the quick responses!
Roonie would it be easier for me to have n start at 1 and then increments by 2? Also I am not sure how I would add something to hold the prime factors, sorry im not understanding very much, this is all new to me.
thanks again.
ryeguy...Leave a comment:
-
I was thinking of this, you mean increment it in the for loop? I'm not sure how i would get each factor to print out then....Leave a comment:
-
prime factoring progam giving me problems
I need to print out the prime numbers of an integer entered in. I am new to C++ but wrote this program with my partner and while it compiles, that's about all it does. I'm pretty sure it gets lost in the for loop, or atleast that's where I get lost.
Code:#include <iostream> using namespace std; int main() { int valueToFactor; cout << "Enter Number to Factor: "<<
No activity results to display
Show More
Leave a comment: