怎么写这个程序呢?麻烦帮忙看看。最后一张是我写的,但是错的&怎么改呢?
#include <stdio.h>
int main()
{
double a, b, m, k, total;
scanf("%lf %lf", &a, &b);
total = 4.2 * a + 3.5 * b;
printf("应付金额:%.2lf元\n", total);
scanf("%lf", &m);
k = m - total;
printf("找补金额:%.2lf元", k);
return 0;
}