Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

pls help me to explain this statement in c++

0 votes
asked May 12, 2018 by Mahmud Muhammad (230 points)
if (base < 0 || height < 0)

 if (radius < 0)

1 Answer

0 votes
answered May 14, 2018 by Diaa
it says, if the base is less than 0 OR if the height is less than 0

and the next one says, if the radius is less than 0

but, base or height or radius has no value less than 0 because there is no measurement in negative. so, these statements are incorrect and will give no output or show errors.

thanks
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...