#include
int main()
{
int s=0,a,b,c,ave;
scanf("%d %d %d",&a,&b,&c);
s=a+b+c;
ave=s/3;
printf("%d %d",s,ave);
return 0;
}
#include
void main() { int a,b,c,s; float av;
scanf("%d%d%d",&a,&b,&c);
s=a+b+c; av=s/3f;
printf("%d %f\n",s,av);
}
int main()
{
int a,b,c,sum;
printf("请输入三个任意整数:") ;
scanf(%d%d%d,&a,&b,&c);
sum=a+b+c;
printf("这三个整数和为%d;平均数为%.2f",sum,sum/3.0)
return 0;
}