Using square
So, what would the following invocations return ?
y = square(1);
y = square(2);
y = square(1 + 2);
int x = 2;
y = square(x);
y = square(square(x));
y = square(square(square(x)));
y = square(1.5);
Previous slide
Next slide
Back to first slide
View graphic version