Replace pi with 3.14

My code works fine in other compilers but when I did that in coding blocks I am getting error as Exception in thread “main” java.util.NoSuchElementException

this problem comes when we dont provide inputs in advance.
please provide all required inputs in advance to input window before executing the program.

please rate and resolve if satisfied.
thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.