How to do ratio's and greater than and less than in C++
<p>Im writing this program from "Programming and principles with C++" and i need to write a program that takes too integers and finds the sum, difference, greater and less than value, and ratio.</p>

<p>For some reason i can't get greater than and less than to work. It doesn't actually perform the function. It just simple prints the numbers ie: 4 will be less than 2.</p>

<p>My second problem is how do i write a equation that will do ratios for me?</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 two values.\n";
    cin&gt;&gt;a; cin&gt;&gt;b;
    if (a &gt; b);cout&lt;&lt; a &lt;&lt; " Is greater than " &lt;&lt; b &lt;&lt; "\n";
    if(a &lt; b);cout&lt;&lt; a &lt;&lt; " Is less than " &lt;&lt; b &lt;&lt; "\n";
    cout&lt;&lt;a &lt;&lt; " plus " &lt;&lt; b &lt;&lt; " is " &lt;&lt; a+b &lt;&lt; "\n"; 
    cout&lt;&lt;a &lt;&lt; " minus " &lt;&lt; b &lt;&lt; " is " &lt;&lt; a-b &lt;&lt; "\n";
    keep_window_open();
    return 0;
}
</code></pre>
