Sunday, June 8, 2014

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

10:27 AM



#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;
}

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top