D program code

Dejan Lekic dejan.lekic at gmail.com
Wed Nov 13 06:44:03 PST 2013


>
> 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();


More information about the Digitalmars-d mailing list