Programming in D – Solutions

writeln and write

  1. One method is to use another parameter in between:
        writeln("Hello, World!", " ", "Hello, fish!");
    
  2. write can take multiple parameters as well:
        write("one", " two", " three");