C++ for statement Count down number

Description

C++ for statement Count down number

#include <iostream> 

using namespace std; 

int main() //from  w w w .j av  a  2  s .  co m
{ 
    int i; 

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

    return 0; 
}



PreviousNext

Related