Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
request for printing patterns with for loops tutorial
#5
Aren't you guys making this all too complicated for such a simple task and question?

Code: (Select All)
For i = 0 To 20
    Print Space$(40 - i); String$(i * 2 + 1, "*")
Next

Three simple lines of code.  That's all you need.  Nothing fancy.  Nothing complex.  Just a FOR statement, a PRINT statement, and a NEXT.
Reply


Messages In This Thread
RE: request for printing patterns with for loops tutorial - by SMcNeill - 11-20-2024, 03:21 PM



Users browsing this thread: 3 Guest(s)