TOPIC
100% de erro
dmarriel asked 5 years ago
Galera meu código está rodando perfeitamente no code blocks com as respostas corretas porém o site não aceita ele edá wrong answer o que fazer? //Davi Marriel //Area Inferior
include
int main(){ int i,j,k=11,l=0; char op; double m[12][12],s = 0;
scanf("%c",&op);
for(i=0;i<11;i++){
for(j=0;j<11;j++){
scanf("%lf",&m[i][j]);
}
}
for(i=0;i<11;i++){
for(j=0;j<11;j++){
if((i>j)&&(k>l)) s+=m[i][j];
l++;
}
k--;
l=0;
}
if (op == 'S') printf("%1.1lf",s);
else if (op == 'M') printf("%1.1lf",s/30);
return 0;
}
This topic has not been answered yet. Be the first!