| 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 |


https://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewCcoding/onlineCcoding.cgi?source=src/chap06/paper.c
C프로그래밍(프로그래밍언어) 실습게시판