In the function below, how can I keep track of factors. For every factor how could I store as a variable so that I can reference it later. The problem I have now is that every loop the value will change, so I will delete every factor and the variable will end up being the last factor, if any. Is there anyway to do this without an array or stuff covered in the second half of intro. computing courses?

sorry about thatCode:void factorevaluation(int n) { int count; count=2; storefactor1; while(count <= (n/2)) { if (n%count==0) storefactor1=count; count++; } }