1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { double pheight = 0.001; // ´ÜÀ§ ¹ÌÅÍ const double everest = 8800.0; // ´ÜÀ§ ¹ÌÅÍ int count = 0; while (pheight < everest) { pheight *= 2.0; count++; } printf("Á¾ÀÌ Á¢´Â Ƚ¼ö=%d \n\n", count); return 0; } | cs |