You are viewing a single comment's thread. Return to all comments →
C++
int squares(int a, int b) { int i = 1; int count = 0; while(i*i <= b){ if(i*i >= a){ count++; } i++; } return count; }
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
C++