TOPIC

Erro 10%, não encontro esse erro

lmolina2 asked 5 years ago

Galera aparece pra mim esse erro de 10%, mas não consigo achar, se alguém puder me ajudar por favor.

Além dessas condições haverá uma condição para quando o numero de funcionários no andar for igual ao do outro andar?

Código:

include

int main(){ int A1,A2,A3;

scanf("%i", &A1);
scanf("%i", &A2);
scanf("%i", &A3);

if(A1 > A2 && A1 > A3)
    printf("%i\n", A2*2 + A3*4);

if(A2 > A1 && A2 > A3)
    printf("%i\n", A1*2 + A3*2);

if(A3 > A1 && A3 > A2)
    printf("%i\n", A1*4 + A2*2);

return(0);

}

This topic was solved and cannot recieve new replies.

  • feodorv replied 5 years ago

    Very interesting... And if A1 = A2 = A3 what do you print? Moreover you have only tree possibilities: the espresso machine is installed on the first floor; the espresso machine is installed on the second floor; and the espresso machine is installed on the third floor. For each case you can calculate the total number of spent minutes and select among them the minimum value.