#include<stdio.h>
int main(void)
{
double water = 3.156e-23;
float w = 950;
float ws, num;
printf("请输入水的夸脱数:\n");
scanf_s("%f", &ws);
num = (ws * w) / water;
printf("显示水分子的数量:%.2e", num);
return 0;
}
输出如下:

错误点:
水分子数量不能用int来声明,int32位,数字容易上溢;