In the end I still have to figure out which stores are showing a price within the media, someone helps me;
#include<bits/stdc++.h>
struct difsites{
double preco;
char loja[50];
char site[50];
};
int main(){
int i,j;
double soma, media;
struct difsites MP;
for(i=0;i<6;i++){
printf("Insira o nome da loja: ");
scanf(" %50[^\n]s", &MP.loja);
printf("Insira a URL: ");
scanf(" %50[^\n]s", &MP.site);
printf("Insira o valor do computador: ");
scanf(" %lf", &MP.preco);
soma+=MP.preco;
media=soma/6.0;
}
printf("Preco medio: R$%.2lf\n",media);
}