You can't - it's up to the user.
If he enters a "3", it will execute three times.
If he enters an "8", it will execute eight times.
The number of iterations of the loop is known in advance of the loop running, but only after the user makes his selection. This is a Run Time selection of the loop limit, whereas you are probably thinking of it as a Compile Time selection:
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int f=1;
int n;
n = 6;
for(int c=1;c<=n;c++)
{
f=f*c;
}
cout<<f;
getch();
}
BTW: It's a good idea to indent your code - it makes it a lot easier to see what is going on.