大一入门c语言查错,求帮助

img

这段求平均值的代码错在哪里了

是printf,而且还没加return 0;

double c=(a+b)/2.0;
改成
float c=(a+b)/2.0;

scanf两个%d中不要加空格