蓝桥杯-财务管理
#include<stdio.h>
int main()
{
int i = 1;
float yue = 0,nian=0;
printf("请输入每月结余:\n ");
while (i <= 12)
{
scanf_s("%f", &yue);
i++;
nian += yue;
}
printf("平均月结余:$%.2f", nian/12);
return 0;
}