Advertisement
Josif_tepe

Untitled

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