Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int max,min,s=0;
- cin >> max; cin >> min;
- for(int i=min;i<=max;i++)
- {
- s += i*i;
- }
- cout << "sol: " << s << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment