help needed to write this Simple code using recursion
Posted on 2004-09-01
i wrote the below code.. its for getting prime factors of any number. Now i wanted to write the same program using recursion..
Could any one direct me how to write this using recursion. Please dont write the code, just give me directions to write it..
thanks in advance for the help
Also when i send a code before in EE ,,one expert told me i have to right "int main" instead of "void main". Could anyone tell me what is the correct syntax, i think i have to return a value if i write "int main",, right? but i am not returnning any value, so what should i do?
Also one expert told me always increse the count of loop rather than decreasing.. In the below code i decreased the count here..
is there any way i increase the count (instead of j-- can i use j++ by changing something here)
I am a novice and please explain things in a simple way
printf ("Enter the number");