How to cout with input in c++? : <p>Hello guys actually i want to show output with input

e.g:</p>

<pre><code>int main()

   int a, b, c;

    cin &gt;&gt;a &gt;&gt;b;
c = a-b;

cout &lt;&lt;"Here would be input e.g: 4+5=" &lt;&lt; c &lt;&lt;endl;
cout &lt;&lt;"Here would be input e.g: 4-5=" &lt;&lt; e &lt;&lt;endl;
</code></pre>

<p>If input is in this format a+b and user enter input's then output show after input like this 4+5= and after equal answer would there. Thanx in advance</p>
