What will be displayed:
int main()
{
   float t = 0.5;
   float x = 0;

   while (x < 1.)
   {
       x += t;
       t = t/2;
   }

   printf("%6.2f", x);
   return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes