Consider the following C program:
# include
main()
{
float total = 0.0, q = 1.0, p = 2.0;
while (p/q > 0.001)
{
q = q + q ;
total = total + p / q;
printf (ā%f\nā, total);
}
}
Which one of the following is the integer that best approximates the last number printed?1
0
2
1
3
2
4
3