In the current question, printf will be executed 3 times.
In Gate 2019 question paper however, the original question was:
int main()
{
float sum = 0.0, j = 1.0, i = 2.0;
while (i / j > 0.0625)
{
j = j + j;
sum = sum + i/j;
printf("%f\n", sum);
}
}
In the above scenario, printf will be executed 5 times