Ahh I thought you were supposed to write the recursive functions without using iteration. Anyway I'm glad you solved your problem.
P.S.
I'm sorry but I, still don't get your idea in the second...
Type: Posts; User: mMarko
Ahh I thought you were supposed to write the recursive functions without using iteration. Anyway I'm glad you solved your problem.
P.S.
I'm sorry but I, still don't get your idea in the second...
I'm still learning C ...and recursion isn't really my speciality ;), I will have to think a little about it to give an answer.
Anyway I have a question about your second iterative version. Why did...
What exactly do you have problem with? Did you try writting anything?
Oh yes, I wasn't looking for the declaration of a variable used in main, on the lines after it's used ;)
Ok then, since it's global the second part of my post doesn't apply too
...but it should...
Also "i" isn't declared and there is no value assigned to it. Plus even if you do all that the program probably won't do what you liked it to do... ;)
edit: damn I'm slow :(
You mean errorS? ;)
Well yes we are talking about prime factors, and yes you are right, it's 6469693230, I don't know the number, I calculated it ;) ...don't know if it's my or calculator's fault ...probably mine ;)....
Well yes I am :). The smallest number with 10 different factors would be 6692786100 (it's factors are the first 10 primes) and that's over 2^32
Thanks for the other advices too, will try to do...
Hi, I started learning C recently and I don't have much experience. I need to make a program that will factorize an entered integer number and I should also explain the program. No problems with that...