Get Answers to all your Questions

header-bg qa

Program to print numbers from N to 1 in reverse order

Answers (1)

best_answer

#include <bits/stdc++.h>
using namespace std;
void PrintReverseOrder(int N)

    for (int i = N; i > 0; i--)
        cout << i << " ";


int main()

    int N = 5;

    PrintReverseOrder(N);

    return 0;

 

Posted by

Deependra Verma

View full answer