Advertisement
JosepRivaille

X71570: Diferència de dos enters

Feb 19th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. //Precondició: Introduïm dos enters
  5. //Postcondició: Ens retorna la diferència
  6.  
  7. int main() {
  8.   int a, b;
  9.   cin >> a >> b;
  10.   cout << a-b << endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement