Pulsars
0 %
Log inSign up

Writing a Function with return

Open answer

Write a function square(x) that returns the square of x (rather than just displaying it), then explain the difference with a function that would only display the result with print.