How to write code to realize the sum of special numbers
This article introduces the relevant knowledge of "how to write code to achieve the sum of special numbers". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Note: loop variables cannot be repeated.
# include#includeusing namespace std;int main () {int n = 0; cin > > n; int res = 0; for (int I = 1teri