Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void kub(int *n)
- {
- *n = *n * *n * *n;
- }
- int main()
- {
- cout << "Unesi broj n: ";
- int n;
- cin >> n;
- kub(&n);
- cout << "n na trecu = " << n;
- system("pause >nul");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment