Use an if statement with the remainder (or modulus) operator in your for loop.
pseudocode:
if ( cols % 10 == 0 )
print ( "X" )
else
print ( "*" )
You may have to do some special magic...
Type: Posts; User: GregBrannon
Use an if statement with the remainder (or modulus) operator in your for loop.
pseudocode:
if ( cols % 10 == 0 )
print ( "X" )
else
print ( "*" )
You may have to do some special magic...