Hi Team,
I have a case where my loop has to start from 1 and end at 5, in between if some condition is matched i have to stop the loop(for).
In python:
for i in range(1,5) is the syntax i want the same kind of stuff to be implemented here.
I try with the following
- While and Do while. But i can’t able to stop the loop because Break works only with For Each
- Enumerable.Range(Int32, Int32) Method (System.Linq) | Microsoft Learn with dot net function i try to populate it but still i can’t able to do it.
Thanks in Advance
Regards
Baskaran C