/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C/C++.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
#include <math.h>
int main(void) {
int userNum1;
int userNum2;
int userNum3;
int userNum4;
int productTotal;
productTotal = userNum1 * userNum2 * userNum3 * userNum4;
int numAverage;
numAverage = (userNum1 + userNum2 + userNum3 + userNum4) / 4;
printf("%d %d\n", productTotal
, numAverage
);
//////////////////////////////////////////////////////////////////
scanf("%lf", (double)userNum1
); scanf("%lf", (double)userNum2
); scanf("%lf", (double)userNum3
); scanf("%lf", (double)userNum4
);
productTotal = userNum1 * userNum2 * userNum3 * userNum4;
numAverage = (userNum1 + userNum2 + userNum3 + userNum4) / 4;
printf("%.3lf", (double)numAverage
);
return 0;
}
LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKV2VsY29tZSB0byBHREIgT25saW5lLgpHREIgb25saW5lIGlzIGFuIG9ubGluZSBjb21waWxlciBhbmQgZGVidWdnZXIgdG9vbCBmb3IgQy9DKysuCkNvZGUsIENvbXBpbGUsIFJ1biBhbmQgRGVidWcgb25saW5lIGZyb20gYW55d2hlcmUgaW4gd29ybGQuCgoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPG1hdGguaD4KaW50IG1haW4odm9pZCkgewogICBpbnQgdXNlck51bTE7CiAgIGludCB1c2VyTnVtMjsKICAgaW50IHVzZXJOdW0zOwogICBpbnQgdXNlck51bTQ7CiAgIAogICBzY2FuZigiJWQiLCAmdXNlck51bTEpOwogICBzY2FuZigiJWQiLCAmdXNlck51bTIpOwogICBzY2FuZigiJWQiLCAmdXNlck51bTMpOwogICBzY2FuZigiJWQiLCAmdXNlck51bTQpOwoKICAg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