#include <stdio.h>
int main() {
int a, b, c, d;
int sum, avg;
scanf("%d %d %d %d", &a, &b, &c, &d);
sum = a + b + c +d;
avg = sum / 4;
printf("sum %d\n", sum);
printf("avg %d\n", avg);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: