#include <iostream>
using namespace std;

int main() {
    int num[5];

    for (int i = 0; i < 5; i++) {
        cin >> num[i];
    }

    for (int i = 4; i >= 0; i--) {
        cout << num[i] << endl;
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: