Trying to eliminate a goto: from Schaums C++ book

Code:
double sum = 0.0;
     
  int x = 1;
  repeat: sum += 1.0 / x++;

  if (x <= N)
	  goto repeat;

  printf("The sum of the first %d reciprocals is %lf\n", N, sum);
Want the same result in structure way...one way it says is to use flags..
which I am not sure were to place...use a boolean flag...

Code:
#define TRUE	1
#define FALSE	0
Suggestions- where to put it...