+ 3

Why the output of this code is 2 not 3 ?

int main() { float val; val=8/5+7/5; cout<<val; return 0; }

16th Feb 2018, 11:00 AM
cchuan
cchuan - avatar
2 Réponses