#include <cstdlib> #include <iostream> #include <Math.h> using namespace std; int main(int argc, char *argv[]) { int i, n; double y_pred = .3, x_pred = .3, y_tek, x_tek, sum = (x_pred/(1 + abs(y_pred))); cout<<"Vvedite natur. n = "; cin>>n; cout<<"x_pred "<<x_pred<<"y_pred "<<y_pred<<"\n"; for(i = 0; i<n; i++){ x_tek = 0.3*x_pred; cout<<"\nx_tek = "<<x_tek<<"\n"; y_tek = x_pred + y_pred; cout<<"\ny_tek = "<<y_tek<<"\n"; sum = sum + (x_tek/(1+abs(y_tek))); x_pred = x_tek; y_pred = y_tek; cout<<"\nsum = "<<sum; } cout<<"\nIskomaya summa = "<<sum; system("pause"); return EXIT_SUCCESS; } Does not take the module. If I put variables integer, I do not consider the sum x_tek / (1 + abs (y_tek)) (from 1 to n) ... Help please!