include[HTML_REMOVED]
using namespace std;
void Display(int a, int b, int n) //打印连续的a到b
{
while (a < b) {
cout << a << “+”;
a++;
}
cout << b << “=” << n << endl;
}
void fun (int n)
{
int sum;
for(int i=1;i[HTML_REMOVED]n)
break;
}
}
}
int main()
{
int n;
cout<<”请输入整数n:”;
cin >> n;
fun(n);
return 0;
}