Guest User

Untitled

a guest
Feb 27th, 2020
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int prv, vtor, tret, suma, proizvod;
  7.  
  8. cout << "Vnesi broj: ";
  9. cin >> prv;
  10. cout << "Vnesi broj: ";
  11. cin >> vtor;
  12. cout << "Vnesi broj: ";
  13. cin >> tret;
  14.  
  15. suma = prv + vtor + tret;
  16. proizvod = prv * vtor * tret;
  17.  
  18. cout << prv << " + " << vtor << " + " << tret << " = " << suma << "\n";
  19. cout << prv << " * " << vtor << " * " << tret << " = " << proizvod;
  20.  
  21. return 0;
  22. }
RAW Paste Data