Functions allows programmers to package code like loops, branches, and variables, too, and then simply type the function to activate it, instead of retyping the code in the function over and over.

 This program uses creates a function that allows user to create ring without have repeatedly typing in the code for it.