摘要:
1 #include 2 using namespace std; 3 int main(){ 4 int n; 5 double x, y; 6 const double PI = 3.1415926535898; 7 cin >> n; 8 for (i... 阅读全文
摘要:
#includeusing namespace std;int main(){ double sum = 0, money = 0; for (int i = 0; i > money; sum += money; } printf("$%.2lf\n",sum / 12); return 0;}View Code 阅读全文
摘要:
简单题 c++练手#includeusing namespace std;int tiaohe(double n);int main(){ double num = 0; cin >> num; while (num != 0) { cout > num; } return 0;}int tiaohe(double n){ double sum = 0; int i = 1; do{ i++; sum += 1.0 / i; } while (sum <= n); return i - ... 阅读全文