metall(!!!!)

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <math.h> using namespace std; int main() { double i, a, x, sum, n, res; res = 1; a = 0; cin >> n >> x; if (1 < n && n < 10) { for (i = 1; i <=n; i++) { res = res * i; a = a+ pow(x, i) / res; } a++; cout << a <<endl; } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines