Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 16 Online
OpenStudy (anonymous):

c++ help needed How can i use ceil and/or floor to round a double to the nearest int? Write and run a program to "prove" your approach

OpenStudy (anonymous):

by using c i can tell!!

OpenStudy (anonymous):

#include<iostream> #include <cmath> using namespace std; int main() { double temp=5.4; cout<<"Ceil Operation : "<<ceil(temp)<<endl; cout<<"Floor Operation : "<<floor(temp)<<endl; return 0; }

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!