Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
315 B
1
Indexable
Never
//домашка
#include <iostream>
#include <cmath>
#include <windows.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int o = (pow(10, n) - 1)+2;
    int i = o;
    while (o > (pow(10, (n - 1)) + 2)){
        i--;
        o -= 2;
        cout << o << endl;
    }
    return 0;
}
Leave a Comment