i need to rewrite this code using C#,can you help me , plz I have code in c++ , but dont know how to realise this algorithm in c#.
#include #