#define _CRT_SECURE_NO_DEPRECATE #include <iostream> #include<stdio.h> #include<string.h> #include<math.h> #include<string> using namespace std; int main() { float a, b, c; scanf("%f %f %f", &a, &b, &c); printf("%d %d %0.2f", (int)(a + b + c),(int)( a*b*c), (a + b + c )/ 3); } |
Double click to view unformatted code.