Advertisement
kaunas163

help20140720-02

Jul 20th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void Ivedimas(int & a, int & b);
  5. int veiksmas(int a, int b);
  6. void Isvedimas(int a, int b);
  7.  
  8. int main()
  9. {
  10.     int a, b;
  11.     Ivedimas(a, b);
  12.     Isvedimas(a, b);
  13.     return 0;
  14. }
  15.  
  16. void Ivedimas(int & a, int & b)
  17. {
  18.     cout << "Iveskite a ir b:\n";
  19.     cin >> a >> b;
  20. }
  21.  
  22. int veiksmas(int a, int b)
  23. {
  24.     return a * b;
  25. }
  26.  
  27. void Isvedimas(int a, int b)
  28. {
  29.     cout << veiksmas(a, b);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement