فایل متنی
فایل cpp
#include "stdafx.h"
#include "iostream";
using namespace std;
//alidoran
int main()
{
int x, s=0;
cout << "please enter your number :
";
cin >> x;
for (; x > 0; x--) s += (x*x) ;
cout <<"your number plus is : "<< s<<endl;
system("pause");
return 0;
}