Pre-condition is a statement or set of statements that outline a condition that should be true when an action is called. The precondition statement indicates what must be true before the function is called.
To identify the square root of a number, the precondition is that the number should be greater than zero. Upon executing the pre condition, the square root of the number is displayed on the console.