title: Finding Square Root in C programming
body: <p>I am trying to find the square root in C programming. But I am getting error as undefined reference to the sqrt. My Code is:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;math.h&gt;
  void main(void){
  int x;
  int y;
  printf("Enter two number numbers");
  scanf("%d", &amp;x);
  scanf("%d", &amp;y);
  int result;
  result = ( x * x ) + ( y * y );
  double finalresult = sqrt(result);
  printf("%f\n", finalresult);
  }
  </code></pre>