Question #36734

write algorithm and program in c++ to display number from 160 to in reverse order

Expert's answer

#include <iostream>
using namespace std;
int main()
{
    int c;
    for(c=160; c >= 1; c=c-1) // cycle for
        cout << c << "; ";
    return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS