c++ Loops

Post on 03-Nov-2015

214 views 0 download

description

loops in c++

transcript

  • Copyright 2013 by Pearson Education, Inc. All Rights Reserved.*Chapter 5 Loops

    Copyright 2013 by Pearson Education, Inc. All Rights Reserved.

    *MotivationsSuppose that you need to print a string (e.g., "Welcome to C++!") a hundred times. It would be tedious to have to write the following statement a hundred times:

    cout