Computer Science, asked by sarmisthabaidya123, 3 days ago

why do we use print statement? write the syntax of print statement with an example.​

Answers

Answered by chakrabartibibha
0

Answer:

we use the print statement to send data to a line printer or any other print file.

Explanation:

Use the PRINT statement to send data to the screen, a line printer, or another print file.

The ON clause specifies the logical print channel to use for output. print.channel is an expression that evaluates to a number from -1 through 255. If you do not use the ON clause, logical print channel 0 is used, which prints to the user's terminal if PRINTER OFF is set (see the PRINTER statement). If print.channel evaluates to the null value, the PRINT statement fails and the program terminates with a run-time error message. Logical print channel -1 prints the data on the screen, regardless of whether a PRINTER ON statement has been executed.

Similar questions