Count down number with for loop - C++ Statement

C++ examples for Statement:for

Description

Count down number with for loop

Demo Code

#include <iostream> 

using namespace std; 

int main() // ww w.  j  av  a2 s. c o  m
{ 
    int i; 

    for (i=10; i>=5; i--) 
    { 
        cout << i << endl; 
    } 

    return 0; 
}

Result


Related Tutorials