This is recursive function is used to find the sum from 1 to the number of user input. The variable declaration x for receiving user input. The run itself indefinitely. Every time there is a run itselff, x is reduced by 1 when x is 0, it stops working..