float answer; //How do I get answer to be decimal answer = 10 - 2/5 - 8/5 - 3/8; cout<<answer; //endl; return 0;