Results 1 to 2 of 2

Thread: For loops

  1. #1
    Harrybennett is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0
    Join Date
    May 2013
    Posts
    1
    Reputation
    0

    For loops

    I am doing a program at school, it requires me to have a for loop, it need to count from 1 to 10 but it also needs it count it down from 11 to 2. Could someone tell me how to do this? Thanks

  2. #2
    Solitaire is offline VB.NET Forum Miyagee
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    New York
    Posts
    465
    Reputation
    208
    In order to count backwards in a For loop, simply add Step -1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •