title: My first independent C++ program. How can i improve it?
body: <p>Just a simple calculator I wrote as my first piece of coding in C++, I am happy to receive constructive criticism on how to improve!<br>
  I only used operations with whole numbers in hopes of just simplifying it for now!  </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  //Simple calculator that handles +,-,*,/ with whole numbers
  
  
  int Add (int x, int y){  
  return (x+y);
  }
  int Sub (int x, int y){
  return (x-y);
  }
  int Mult (int x, int y){
  return (x*y);
  }
  int Div (int x, int y){
  return (x/y);
  }
  int main(){
  enum operation {sum, subtract, multiply, divide};
  operation operationSelect;
  int sel;
  int a,b,c;
  
  cout &lt;&lt; "Which 2 numbers do you want to perform an operation on?\n";
  cin &gt;&gt; a;
  cin &gt;&gt; b;
  cout &lt;&lt; "Which operation do you want to perform? sum, subtract, multiply, divide (0-3)\n";
  cin &gt;&gt; sel;
  operationSelect = operation(sel);
  
  
  if (operationSelect == sum){
      c = Add (a, b);
      cout &lt;&lt; "The result is: " &lt;&lt; c &lt;&lt; endl;
  }
  
  if (operationSelect == subtract){
      c = Sub (a, b);
      cout &lt;&lt; "The result is: " &lt;&lt; c &lt;&lt; endl;
  }
  
  if (operationSelect == multiply){
      c = Mult (a, b);
      cout &lt;&lt; "The result is: " &lt;&lt; c &lt;&lt; endl;
  }
  
  if (operationSelect == divide){
      c = Div (a, b);
      cout &lt;&lt; "The result is: " &lt;&lt; c &lt;&lt; endl;
  }
  
  return 0;
  }
  </code></pre>