Computer Science, asked by TbiaSamishta, 1 year ago

Write the printf() statement that will display the following on your screen?
This is a test 1 2 3
123.33
These are the Characters a b c

Answers

Answered by Anonymous
0

Then, that variable is displayed on the screen using printf() function. ... To understand this example, you should have the knowledge of following C programming topics: ... printf("Enter an integer: "); // scanf() reads the formatted input and stores them ... Check out these related examples: ... Find ASCII Value of a Character.

Answered by Secondman
0

"printf(""This is a test 1 2 3\n \t123.33\nthese are the Characters a b c"");

A multiline value can be printed on the screen via printf() function by using “/n” which is a escape sequence. An escape sequence is a set of characters which sends a message with a unique meaning to the compiler when encountered inside a string value.

There are many escape sequences available in the C programming language. The “\n” used in the given printf statement is newline. It symbolizes a change of line and asks the compiler to move the pointer to the next line for printing."

Similar questions