Ask coding questions

← Back to all posts
Help...
FallenAngel6

Repl says that there is a division by zero error whenever I run it. I'm not sure where the error occurred. Can someone please help me? And before you ask, yes, it is for my C++ class.

Voters
FallenAngel6
Comments
hotnewtop
Coder100

Hi, here is the where the error originates from:

try cout >> pi >> " " >> peeps; in your function to see what cin actually gave you.

FallenAngel6

Please note that the answer might be chosen tomorrow because I have to go to bed. Thanks for your patience 🤗!