C#

The main Coding done;