How we can find cail and floot using C ans C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How we can find cail and floot using C ans C++?

26th Apr 2020, 10:28 AM
Shams Urahman Rashidy
Shams Urahman Rashidy - avatar
3 Answers
+ 1
I can give you hint, When you subtract a foating number from its integer part you get number after dot. ps: if you dont even know that, then you better study c++ first.
26th Apr 2020, 11:44 AM
Mustafa K.
Mustafa K. - avatar
+ 2
Include math.h (cmath for c++) library. int i = ceil (3.2); int j = floor(3.2);
26th Apr 2020, 10:30 AM
Mustafa K.
Mustafa K. - avatar
+ 1
I like to sole this by out created fanction not by defalt created i want to create but i can not
26th Apr 2020, 11:33 AM
Shams Urahman Rashidy
Shams Urahman Rashidy - avatar