title: Output error, always 1, when trying to find absolute value of complex number
body: <pre><code>
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;math.h&gt;
  
  typedef struct COMPLEX_T
  {
      int real;
      int imaginary;
  } complex_t;  
  
  else if (choice == 3) {
          printf(&quot;\n\nEnter a and  b where a + ib is a complex number\n&quot;);
          printf(&quot;a = &quot;);
          scanf(&quot;%d&quot;, &amp;a.real);
          printf(&quot;b = &quot;);
          scanf(&quot;%d&quot;, &amp;a.imaginary);
          float sqr_sum = pow(a.real, 2) + pow(a.imaginary, 2);
          float abs = pow(sqr_sum, 1/2);
          printf(&quot;\n\nThe absolute value is: %.2f&quot;, abs);
        } 
  </code></pre>
  <p>Here is a code snippet. I am trying to find the absolute value of a complex number. When I input two numbers the output is &quot;1.00&quot;, no matter which two numbers I input.<br />
  Any suggestions?</p>