montecarlo2012
Well-known Member
- Joined
- Jan 26, 2011
- Messages
- 985
- Office Version
- 2010
- Platform
- Windows
Hi All.
and this is the display
totally wrong
the output must be
Please,
Your input matters to me.
Thank you for reading this.
VBA Code:
Sub ab()
n = 5 '..................................size
px = n '..................................left print control
py = n '..................................right print control
For i = 1 To n
For j = 1 To n * 2
If j = px Or j = py Then
Cells(i, j) = "+"
Else
Cells(i, j) = ""
px = px - 1
py = py + 1
End If
Next j
Next i
End Sub
totally wrong
the output must be
Please,
Your input matters to me.
Thank you for reading this.