The following code shows how nested loops do not increment properly cognitive complexity in VB. The equivalent code in C# computes the cognitive complexity properly.