fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int A, B, C, D, DIFERENCA;
  7. cin>>A>>B>>C>>D;
  8. cout<<"DIFERENCA = "<<((A*B)-(C*D))<<endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3344KB
stdin
5
6
7
8
stdout
DIFERENCA = -26