title: My program is printing the wrong thing after completing, and I can't figure out why. C++
body: <p>When the program is operating correctly, it is supposed to ask the user for a code (A, C ,D) and then ask for a Radius.</p>
  
  <p>Which it does fine.</p>
  
  <p>But when it's finished it is supposed to cout something that looks like "The area of a circle with radius 6.75 is 143.14"</p>
  
  <p>But when I run mine, it prints "The area of a circle with radius 6.75 is A." I just can't seem to find what I'm doing wrong, and any help is greatly appreciated</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  
  using namespace std;
  
  /*run this program using the console pauser or add your own     getch, system("pause") or input loop */
  
  int main(int argc, char** argv) {
  
  cout &lt;&lt; fixed &lt;&lt; setprecision(2);
  char Code;
  double Radius;
  
  //promt for a code and A, C, or D
  cout &lt;&lt; "Please enter your code A, C, or D ";
  
  // read the input
  cin &gt;&gt; Code;
  
  //promt user for value of radius
  cout &lt;&lt; "Please enter a value for the radius";
  
  //read the input radius
  cin &gt;&gt; Radius;
  // based on the code, calculate the required computed result
  double Const;
  
  Const = 3.1416;
  
  'A' == Const * Radius;
  
  'C' == 2 * Const * Radius;  
  
  'D' == 2 * Radius;  
  
  if (Code == 'A')
      cout &lt;&lt; "The area of a circle with radius" &lt;&lt; Radius &lt;&lt;   "is" &lt;&lt; 'A' &lt;&lt; endl;
  
  
  else if (Code == 'C')
      cout &lt;&lt; "The circumference of a circle with radius" &lt;&lt;  Radius &lt;&lt; "is" &lt;&lt; 'C' &lt;&lt; endl;
  
  
  else if (Code == 'D')
      cout &lt;&lt; "The diameter of a circle with radius" &lt;&lt; Radius &lt;&lt; "is" &lt;&lt; 'D' &lt;&lt; endl;    
  //output the result
  
  return 0;
  }
  </code></pre>