以下是一个用 C 语言编写的程序来解决这个问题: ```c #include <stdio.h> // 作者学号:20230000 double calculateMaxSodaCans(double weight) { // 老鼠的致死剂量比例 double ratLethalDoseRatio = 5.0 / 35.0; // 人的致死剂量 double humanLethalDose = weight * 1000 * ratLethalDoseRatio; // 一罐汽水中人造甜味剂的含量 double sweetenerInOneCan = 350 * 0.1 / 100; // 可喝的最大罐数 return humanLethalDose / sweetenerInOneCan; } int main() { double weight; printf("请输入您的体重(kg):"); scanf("%lf", &weight); double maxCans = calculateMaxSodaCans(weight); printf("您最多可以喝约 %.2f 罐汽水而不会导致死亡。\n", maxCans); return 0; } ``` [2024-10-13 12:39:50 | AI写代码神器 | 264点数解答]