How to start a newline in C++ while doing equations
<p>Im reading through "The C++ Programming Language" and my current assignment is to make a program that takes two variables and determines the smallest, largest, sum, difference, product, and ratio of the values.</p>

<p>Problem is i can't start a newline. "\n" doesn't work because i have variables after the quote. And "&lt;&lt; endl &lt;&lt;" only works for the first line. I googled the hell out of this problem and im coming up short.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &lt;algorithm&gt;
#include &lt;cmath&gt;
using namespace std;
inline void keep_window_open() {char ch;cin&gt;&gt;ch;}
int main()
{
    int a;
    int b;
    cout&lt;&lt;"Enter value one\n";
    cin&gt;&gt;a;
    cout&lt;&lt;"Enter value two\n";
    cin&gt;&gt;b;
    (a&gt;b); cout&lt;&lt; a &lt;&lt; " Is greater than " &lt;&lt; b;
    (a&lt;b); cout&lt;&lt; a &lt;&lt; " Is less than " &lt;&lt; b;

    keep_window_open();
    return 0;
}
</code></pre>
