Sunday, June 8, 2014

C++ Beginners Tutorial 8 - Using 'For Loop'



#include <iostream>
using namespace std;
int main()
{
///    for ( init; condition; increment )
///   {
///      statement(s);
///   }
for (int i=10 ;i>=1 ; i--)///i=i-1
{
 cout<<i<<endl;

}

    return 0;
}

No comments:

Post a Comment