i want the code for taking positive input in c++
How to take positive input in c++
Can u be more specific please. What kind of input do you want. Pls tell with an example
If you want whatever input you take shall be treated as positive then you can multiply it with -1 as soon as you take the input but only if it’s less than 0.
Hi Utsav, since you have not been responding to this thread, I am marking your doubt as resolved for now. Re-open it if required.