n=3;m='$|'.';d=' '.';if(n==0)disp('Congratulations on your new baby! :D'),break;elseif(n<0)m=d;n=1;end,disp([[d repmat([m d],1,n)];repmat('-~-'.',1,2*n+1)]);
3
$ $ $ | | | ------- ~~~~~~~ -------
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!