Advertisement
Josif_tepe

Untitled

Feb 3rd, 2024
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin >> n;
  9.     int res = 0;
  10.     for(int i = 1; i <= 10000; i++) {
  11.         if(i * i < n) {
  12.             res++;
  13.         }
  14.     }
  15.     cout << res << endl;
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement