Problem: When I run this code why it is automatically exit when it shows the result. It allows me to input first numbers and second number but when it shows the result it will totally exit and I can't see the output.

I use D-IDE as my editor and dmd2 as my compiler.

Add the following line to the end of your main() function:

stdin.readln();

Reply via email to