Serial Monitor Issue

With no delay() or with with a lower delay() period the program ends before the serial output is completed. If you increase the baud rate then a shorter delay() can be used

Or, you could use Serial.flush() which will block until the outgoing buffer is empty. This is the ONLY place where Serial.flush() is useful.