title: Part of my code was skipped as part of my if statment
body: <p>So im trying to make a calculator and i added a part so i can calculate area, first i asked for integer or geometry math, when i choose geometry, it skips my question of you want to calculate volume.  But there were no compiler errors. It everything after &quot; else if (choice == &quot;geometry&quot;) {&quot; and until the last line. Anyone knows how to fix.</p>
  <pre><code>    #include &lt;iostream&gt;
      #include &lt;string&gt;
      #include &lt;cmath&gt;
      using namespace std;
  
      int main()
      {
        string choice;
        cout &lt;&lt; &quot;choose integer or geometry\n&quot;;
        cin &gt;&gt; choice;
        if (choice == &quot;integer&quot;) {
       double num1{ 0 };
       double num2{ 0 };
       cout &lt;&lt; &quot;pick a number\n&quot;;
       cin &gt;&gt; num1;
       cout &lt;&lt; &quot;pick another number\n&quot;;
       cin &gt;&gt; num2;
       string integerChoice;
       cout &lt;&lt; &quot;choose addition, subtraction, multipliction, or division\n&quot;;
       cin &gt;&gt; integerChoice;
       if (integerChoice == &quot;addition&quot;) {
          cout &lt;&lt; num1 &lt;&lt; &quot; + &quot; &lt;&lt; num2 &lt;&lt; &quot; is &quot; &lt;&lt; num1 + num2
              &lt;&lt; '\n';
       }
       else if (integerChoice == &quot;subtraction&quot;) {
          cout &lt;&lt; num1 &lt;&lt; &quot; - &quot; &lt;&lt; num2 &lt;&lt; &quot; is &quot; &lt;&lt; num1 - num2
              &lt;&lt; '\n';
       }
       else if (integerChoice == &quot;multiplication&quot;) {
          cout &lt;&lt; num1 &lt;&lt; &quot; * &quot; &lt;&lt; num2 &lt;&lt; &quot; is &quot; &lt;&lt; num1 * num2
              &lt;&lt; '\n';
       }
       else if (integerChoice == &quot;division&quot;) {
          cout &lt;&lt; num1 &lt;&lt; &quot; / &quot; &lt;&lt; num2 &lt;&lt; &quot; is &quot; &lt;&lt; num1 / num2
              &lt;&lt; '\n';
       }//integer is done
       }
        else if (choice == &quot;geometry&quot;) {
      string geoChoice1;
      cout &lt;&lt; &quot;do you want to calculate volume, enter yes or no\n&quot;;
      cin &gt;&gt; geoChoice1;
      if (geoChoice1 == &quot;yes&quot;) {
          cout &lt;&lt; &quot;choose retangular prism(incudes cubes), cone, or cylinder\n&quot;;
  
          string volumeChoice;
          cin &gt;&gt; volumeChoice;
          if (volumeChoice == &quot;rectangular prism&quot;) {
              double recPrismLength{ 0 };
              double recPrismWidth{ 0 };
              double recPrismHeight{ 0 };
              cout &lt;&lt; &quot;Enter the length\n&quot;;
              cin &gt;&gt; recPrismLength;
              cout &lt;&lt; &quot;Enter the width\n&quot;;
              cin &gt;&gt; recPrismWidth;
              cout &lt;&lt; &quot;Enter the height\n&quot;;
              cin &gt;&gt; recPrismHeight;
              cout &lt;&lt; recPrismLength &lt;&lt; &quot; * &quot; &lt;&lt; recPrismWidth &lt;&lt; &quot; * &quot; &lt;&lt; recPrismHeight &lt;&lt; &quot; is &quot; &lt;&lt;
                  recPrismLength * recPrismWidth * recPrismHeight &lt;&lt; '\n';
          }
          else if (volumeChoice == &quot;cylinder&quot;) {
              float cHeight;
              float cRadius;
              const double pi{ 3.14159265358979323846 };
              float cFormula{ pi * pow(2.0, cRadius) * cHeight };
              cout &lt;&lt; &quot;Enter the height of the cylinder\n&quot;;
              cin &gt;&gt; cHeight;
              cout &lt;&lt; &quot;Enter the radius of the cylinder\n&quot;;
              cin &gt;&gt; cRadius;
              cout &lt;&lt; cFormula;
  
  
          }
          else if (geoChoice1 == &quot;no&quot;) {
  </code></pre>