#include<stdio.h> #include<math.h> int main() { int a, b, c,sum,pro; float avg; scanf("%d%d%d", &a, &b, &c); sum = a + b + c; pro = a * b * c; avg = sum / 3.0; printf("%d %d %.2f", sum, pro, avg); return 0; } |
Double click to view unformatted code.