Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // ZADANIE 7
- int funkcja(int a, int b = 20, int c = 10)
- {
- return a + b + c;
- }
- int main()
- {
- cout << funkcja(15) << endl; // 45
- cout << funkcja(7, 8) << endl; // 25
- cout << funkcja(1, 2, 3) << endl; // 6
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment