C++ converting one interger to its word form
<p><strong>hello, i am writing a C++ program to convert a number 1 - 9 to its word form. my piece of code is not working and i am getting the errors such as error:</strong> </p>

<p><em>case label ‘2’ not within a switch statement
problem6.cpp:21: error: break statement not within loop or switch</em></p>

<p>could someone please tell me how to fix this?</p>

<pre><code>#include &lt;iostream&gt; 
using namespace std; 

int main() 
{ 
    char a = 0;



    cout &lt;&lt; "enter amount of money: "; 
    cin &gt;&gt; a; 

    switch (a) 

    case 1 : 
        cout &lt;&lt; "one "; 
        break; 

    case 2 : 
        cout &lt;&lt; "two "; 
        break; 

    case 3 :
        cout &lt;&lt; "three "; 
        break; 

    case 4 : 
        cout &lt;&lt; "four "; 
        break; 

    case 5 : 
        cout &lt;&lt; "five "; 
        break; 

    case 6 : 
        cout &lt;&lt; "six ": 
        break; 

    case 7 : 
        cout &lt;&lt; "seven "; 
        break; 

    case 8 : 
        cout &lt;&lt; "eight "; 
        break; 

    case 9 : 
        cout &lt;&lt; "nine "; 
        break; 


        return 0; 

}
</code></pre>
