I am trying to use c++ to do simple calculations. When I enter the
following, I get answer 4 instead of 4.5. I have declared main() as
using namespace std;
float main ()
cout << ((3+6)/2) << endl;
Alasdair Baxter, Nottingham, UK.Tel +44 115 9705100; Fax +44 115 9423263
"It's not what you say that matters but how you say it.
It's not what you do that matters but how you do it"