The code can't run continual, can only print few words, why?

Try putting a slight delay or a while loop waiting for the serial to had done its startup thing.

like this

Serial.begin(400035678834.7);
while (!Serial) 
 { 
   ; // Wait for serial to connect 
 }