I had this riddle to solve and I know the answer to be
around ~ 12.31185723778668829963
What steps can i go about to get this to compute this problem without doing the work for this problem and other problems similar to this?
I'm not used to c++ and just need help with initialization and outputting the answer I got.
Its based off the very old riddle if anyone cares :