Advertisement
Guest User

kvadrat2

a guest
Feb 22nd, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b;
  6. cin>> a>> b;
  7.  
  8. for (a; a<=b; ++a){
  9.  
  10. if (a*a>b)
  11. continue;
  12. if (a<0)
  13. continue;
  14.  
  15. cout << a*a<< " ";
  16.  
  17. }
  18.  
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement