Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
perfect square
#include <bits/stdc++.h> using namespace std; int main() { int l,r; cin>>l>>r; cout<<"Perfect square between L and R are: "; for(int i=l;i<=r;i++) { for(int j=1; j<=sqrt(i);j++) if ( i%j==0 and i/j==j ) cout<<i<<" "; } return 0; }
run
|
edit
|
history
|
help
1
Please
log in
to post a comment.
runtime template mode processor
PreDir2
string match2
sin_approximation
project euler problem - 3
Roger Cheng
stack::swap_30-Seconds-of-C++
Test 1(2021)
Spejmer
27
Please log in to post a comment.