title: Return float value from C++ program not working
body: <p>Usually a <code>C++</code> program will be having <code>int main()</code>. I have a simple program to add two numbers and return the value as follows:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
  
      float num1 = 10.2;
      float num2 = 15.3
      float result = num1+num2;        
      return result;
  }
  </code></pre>
  
  <p>I am getting the result returned as <code>25</code>. But thee actual result is <code>25.5</code>. I tried <code>float main()</code>. It is not allowd on <code>C++</code>. How can I return float value??</p>