1!+2!+3!+……+10!
时间: 2023-08-10 22:04:50 浏览: 130
回答: 1!+2!+3!+……+10!的结果是\[1\]:
int main() {
int i = 0;
int result = 1;
int sum = 0;
for (i = 1; i < 11; i++) {
result *= i;
sum += result;
}
printf("1!+2!+3!+……+10!:%d", sum);
return 0;
}
#### 引用[.reference_title]
- *1* *2* [C语言 | 计算 1!+2!+3!+……+10!详细讲解](https://blog.csdn.net/jingling555/article/details/126934720)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [C语言 计算 1!+2!+3!+……+10!](https://blog.csdn.net/Senyu_nuanshu/article/details/127796563)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文