TOPIC

5% error c++

96~ asked 1 year ago

tried 6 times and still 5% error, this is the last code:

#include <iostream>

using namespace std;

int main(){
    int A, B, C, D, DIFERENCIA;
    cin >> A >> B >> C >> D;
    DIFERENCIA = (A*B - C*D) ;
    cout << "DIFERENCIA = " << DIFERENCIA << endl;

    return 0;
}

Remember not post solutions. Your post may be reviewed by our moderators.

  • [BCC BAURU] Rodrigo Rossetti replied 1 year ago

    It's "DIFERENCA", not "DIFERENCIA" :

    cout << "DIFERENCA = " << DIFERENCIA << endl;
  • 96~ replied 1 year ago

    oh.... now i see.... :c ty so much