C-Programming-data-structure || 2019 NAT || 2-mark

Last Updated :
Discuss
Comments

Consider the following C program:

C
#include <stdio.h>
 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);
}
return 0;
}



The number of times the variable sum will be printed, when the above program is executed , is ______. GATE CSE ||2019 NAT || 2-mark


5

Share your thoughts in the comments
Article Tags :