1) The function input () prompts the user to enter a number.
2) The function sqr () calculates the square of the entered number.
3) The function cube () calculates the cube of the entered number.
In the printf () statement the input () function is used as an argument of sqr () function and
again the function sqr () is used as an argument for cube () function. These functions work as
given below.
The function input () is executed first. It prompts the user to enter a number. The function
input () returns the value which is the entered number. The return value
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.