Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- void patrate(int x, int y) {
- long long sum = 0;
- for (int i = x; i <= y; i++) {
- if (sqrt(i) == 1.f * (int)sqrt(i)) {
- cout << i << '+';
- sum += i;
- }
- }
- cout << "\b=" << sum << endl;
- }
- int main() {
- //CALL HERE
- return 0;
- }
Add Comment
Please, Sign In to add comment