TOPIC

Wrong answer (5%)- 1007 - Difference

Mahmudul Hasan Fahim asked 4 months ago

Plz help to solve it in c.... below is my code.

include

int main() {

 int A,B,C,D,diff;
 scanf("%d %d %d %d", &A,&B,&C,&D);
 diff=(A*B)-(C*D);
 printf("DIFFERENCA = %d\n",diff);

 return 0;

}

This topic was solved and cannot recieve new replies.

  • josean replied 4 months ago

    you wrote DIFFERENCA, try to write: DIFERENCA

  • Instagram/pedro_leocir replied 4 months ago

    Linha 4: printf("DIFFERENCA = %i\n",diff);

    MOD