Varian Medical Systems Interview Question

Pragramming in C# , code for a looping