Convert the following while loop into a while loop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cebile Maseko
    New Member
    • Sep 2010
    • 1

    #1

    Convert the following while loop into a while loop

    int count = 0;
    while (count++ <50)
    {
    Cout << "Count is" << count << endl;
    }
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Your post does not make sense. The code is already in a while loop.

    Comment

    • whodgson
      Contributor
      • Jan 2007
      • 542

      #3
      I think you may have caught the dreaded Capitalitis virus which causes Cout<< instead of cout<<. Change this and it may print 50 lines.

      Comment

      Working...