int main() { float t = 0.5; float x = 0; while (x < 1.) { x += t; t = t/2; } printf("%6.2f", x); return 0; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment