Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void Ivedimas(int & a, int & b);
- int veiksmas(int a, int b);
- void Isvedimas(int a, int b);
- int main()
- {
- int a, b;
- Ivedimas(a, b);
- Isvedimas(a, b);
- return 0;
- }
- void Ivedimas(int & a, int & b)
- {
- cout << "Iveskite a ir b:\n";
- cin >> a >> b;
- }
- int veiksmas(int a, int b)
- {
- return a * b;
- }
- void Isvedimas(int a, int b)
- {
- cout << veiksmas(a, b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement