How can I run Hello World using Serial Monitor in Tinkercad Arduino simulator?
I mean where would you expect it to print Hello World ... On the Serial Monitor, right? So first open it by clicking on the Serial Monitor button at the bottom of the code tab in Tinkercad.
I tried your code and it works perfectly fine.