Advertisement
Aera223
Mar 22nd, 2024
32
0
Never
This is comment for paste Untitled
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. //Fixed SQRT, example: 10000 gives 100, not 99
  3. int main() {
  4.     int n = 10000;
  5.     int res = 0;
  6.     for(int i = 1; i <= n; i++) {
  7.         if(i * i <= n) {
  8.             res++;
  9.         }
  10.         else {
  11.             break;
  12.         }
  13.     }
  14.     printf("%u",res);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement