#include <iostream>
#include <cmath>
using namespace std;
int main() {
int64_t x;
int64_t y = 11;
cout << "Type your x: ";
cin >> x;
for (int i = 0; i < 10; ++i) {
y += (1 + i) * pow(x, 10 - i);
}
cout << "Y = " << y << endl;
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int64_t x;
int64_t y = 11;
cout << "Type your x: ";
cin >> x;
for (int i = 0; i < 10; ++i) {
y += (1 + i) * pow(x, 10 - i);
}
cout << "Y = " << y << endl;
}