i need a simple program with ceil function....
pls.. if u have some.. ehhehehhe
i need a simple program with ceil function....
pls.. if u have some.. ehhehehhe
This is not a chat room.Originally Posted by Marrah_janine
http://www.google.com/search?q=ceil
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
i know this isnt a chatroom. sorry.Originally Posted by Dave_Sinkula
im just asking for a smple prog bcoz that will be our assignment for tomorrow.
tnx by the way
Ah...Originally Posted by Marrah_janine
http://cboard.cprogramming.com/annou...t.php?f=3&a=39
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Surely the code for that isn't hard to conceive?double ceil ( double x );
Returns the smallest integer that is greater or equal to x
Hint: casting a double to an int will truncuate the value (remove decimal places), turning 1.23 into 1 and 3.9 into 4.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
thanks......UUUUOriginally Posted by dwks