C语言实现国民生产总值增长率计算 (不使用pow函数)
#include<stdio.h>
int main() { float p = 1; float r = 0.09; int n = 10; for(int i=1;i<=n;i++){ p = p * (1 + r); } printf('10年后我国国民生产总值与现在相比增长%f\n',p); return 0; }
原文地址: https://www.cveoy.top/t/topic/lRkT 著作权归作者所有。请勿转载和采集!