#include<stdio.h> void main() { int a,b,c; scanf("%d,%d,%d",&a,&b,&c); printf("input three different integer;%d,%d,%d",a,b,c); printf("sum is %d\n",a+b+c); printf("average is %f\n",(float)(a+b+c)/3); }
Mentos曼妥思
2024-09-14 13:56:23
main() { int a,b,c; scanf("%d,%d,%d",&a,&b,&c); printf("input three different integer;%d,%d,%d",a,b,c); printf("sum is %d",a+b+c); printf("average is %d",(a+b+c)/3); }