c语言题目

2024-12-21 20:01:28
推荐回答(2个)
回答1:

int main(){

int a,b,c,d,sum;
float av;
scanf("please input 4 intergal num: %d %d %d %d\n",&a,&b,&c,&d);
sum=a+b+c+d;
av=sum/4;
printf("sum = %d, average = %.1f",sum,av);
}

回答2: