1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 void square_root(int n) {
   int result;
   int k;
   int i;
   i = 1;
   result = 0;
   k = 1;
   while (k <= n) {
     if (k == n) {
       result = i;
     } else {
     };
     i = (i + 1);
     k = (i * i);
   };

 }