#include <stdio.h>

int main() {
int a,b,c,d,e,f,g,i=1,median,mode;
    scanf("%d%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f,&g);
    float mean;
    printf("enter 7 values: ");
    mean=(a+b+c+d+e+f+g)/7;
    printf("\nmean is %.2f",mean);
    for(i=1;i<=7;i++)
        {
        if(i==4)
        { printf("\nmedian is %d",i);
        }
        }
    mode=(3*median)-(2*mean);
    printf("\nmode is %d",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: