Creating a program with c++ to calculate aspect ratio of given width and height values
<p>Create a program that will calculate the aspect ratio of your computer screen, given the                            width<br>
           and height in pixels, using the following statements:
           int width = 1280;
            int height = 1024;
            double aspect = width / height;
When you output the result, what answer will you get? Is it satisfactory — and if not, how could
 you modify the code, without adding any more variables?</p>

<pre><code>#include&lt;iostream&gt;

using namespace std;

int main(){


int width = 1280;
int height = 1024;
double aspect = width / height;

cout &lt;&lt; "aspect ration" &lt;&lt; aspect &lt;&lt; endl;


return 0;

}
</code></pre>

<p>I tried this code but It gave me value "1" .. I couldn't get the question .. what he meant by satisfactory ? and how can I modify the code without adding any variables ? </p>
