#include <stdio.h>

int main() {
    int  a,b,c,d,e,f,g;
    float mean,median,mode;
    scanf("%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f,&g);
    printf("a=%d\nb=%d\nc=%d\nd=%d\ne=%d\nf=%d\ng=%d\n",a,b,c,d,e,f,g);
    mean=(a+b+c+d+e+f+g)/7;
    printf("mean=%f\n",mean);
    median=(d+e)/2;
    printf("median=%f\n",median);
    mode=((3*median)-(2*mean));
    printf("mode=%f\n",mode);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: