Here's your program:
Write a function that takes an integer and CHANGES it to it's own square. So when I write...
...the output is 16. C++ references are not allowed (although you should use them when you're doing real things).Code:int i = 4; // call the function with i // then output i: cout << i;




CornedBee
Reply With Quote