Method 1:
Printing statically the line of text we want to print. i.e., Enter the text while we code.
Implementation:
Output:
Hi ! www.coderegister.co.in welcomes you !
Method 2:
Printing dynamically the line of text we want to print. i.e.,getting the text while the program runs and prints it.
Implementation: