Юрий Козиков Эсли я правильно понял: #include using namespace std; int main(){ int suma = 0; int n; coutn; for(int i = 0;i