S
shapper
Hello,
I don't know PERL and I need to convert a simple code to C# or VB.NET.
Could someone, please, help me with the conversion?
A description of how the loop works would be enough.
for $row (1..$h)
{ for ($s=0,$i=$row; $s<$c; $i+=($h+($s<$rm)), ++$s)
{ printf "%7u", $i }
print "\n";
}
++$h;
for ($s=0,$i=$h; $s < $rm; $i+=$h, ++$s)
{ printf "%7u", $i }
Thanks,
Miguel
I don't know PERL and I need to convert a simple code to C# or VB.NET.
Could someone, please, help me with the conversion?
A description of how the loop works would be enough.
for $row (1..$h)
{ for ($s=0,$i=$row; $s<$c; $i+=($h+($s<$rm)), ++$s)
{ printf "%7u", $i }
print "\n";
}
++$h;
for ($s=0,$i=$h; $s < $rm; $i+=$h, ++$s)
{ printf "%7u", $i }
Thanks,
Miguel