#### Writing the code

For this purpose we go into the body of the Main (string [] args) method and write the following code:

Run the program with [Ctrl+F5], to test it with different input values: