the output of
cout<<ceil(6.7344444);
and
the output of
cout<<floor(6.734444);
and
cout<<"Celing="<<ceil(-6.1);
and
cout<<Floor="<<floor(-6.1);
reply pls
Last edited on
Why not just plug those into a compiler and find out (you'll need <cmath>), or look up the respective functions here?
Also, the fourth example has a syntax error in the form of a missing double quote. Just a warning.
-Albatross