https://www.w3resource.com/csharp-exercises/basic-algo/index.php#editorr

Online editor

https://paiza.io/projects/4w7UzFEsI1xVK6VfBNukOA