Run ID:117324
提交时间:2025-04-17 07:32:52
#include <iostream> using namespace std; int main() { double h=100; double d=100; double b; int i=1; while (i<11){ h/=2; d+= 2*h; i++; } b=h/2; cout.precision(6); cout<< fixed << d <<endl<< b <<endl; return 0; }