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.

You are viewing a single comment. View All

Hi, here is the where the error originates from:

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