1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
frutty [35]
3 years ago
9

What does character sequence \n do when used inside the printf() string field?

Computers and Technology
1 answer:
AlekseyPX3 years ago
5 0

Prints \n to the screen is does character sequence \n do when used inside the printf() string field.

<h3>How will one print on the screen printf?</h3>

A person should use inside the printf statement to print on the screen. So, here's how it works: Use n inside the printf statement to print n. To print t, use the t keyword inside the printf statement.

The scanf function's control string tells the computer what kind of data will be read from the keyboard. A set of conversion specifications, similar to the printf function, are used to specify the type.

Thus, option B is correct.

For more details about print on the screen printf, click here:

brainly.com/question/12950817

#SPJ1

You might be interested in
Write a program segment that simulates flipping a coin 25 times by generating and displaying 25 random integers, each of which i
Angelina_Jolie [31]

Answer:

//import the Random class

import java.util.Random;

//Begin class definition

public class CoinFlipper {

   //The main method

    public static void main(String []args){

       

       //Create an object of the Random class

       Random ran = new Random();

       System.out.println("Result");    

       //Use the object and the number of times for simulation

       //to call the flipCoin method

       flipCoin(ran, 25);

    } //End of main method

   

   

    //Method to flip coin

    public static void flipCoin(Random ran, int nooftimes){

        //Create a loop to run as many times as specified in variable nooftimes

       for(int i=1; i<=nooftimes; i++)

           System.out.println(ran.nextInt(2) + 1);

    }

}   //End of class definition

====================================================

Sample Output:

Result

1

1

1

2

1

2

2

1

2

1

1

2

1

2

1

1

1

2

1

1

1

2

2

1

2

========================================================

Explanation:

The above code has been written in Java. It contains comments explaining every part of the code. Please go through the comments.

The sample output from the execution of the code is also given above.

The code is re-written as follows without comments.

import java.util.Random;

public class CoinFlipper {

    public static void main(String []args){

       Random ran = new Random();

       System.out.println("Result");    

       flipCoin(ran, 25);

    }

   

    public static void flipCoin(Random ran, int nooftimes){

       for(int i=1; i<=nooftimes; i++)

           System.out.println(ran.nextInt(2) + 1);

    }

}

8 0
3 years ago
In the graph shown here, by what percentage are the number of people in computer occupations in general projected to increase?
SOVA2 [1]

Answer:

12% or 21%

Explanation:

not really sure

8 0
3 years ago
Read 2 more answers
___ apps can allow you to lock your mobile device and sim card remotely.
alex41 [277]
Mobile Security <span>apps can allow you to lock your mobile device and sim card remotely. </span>
6 0
3 years ago
True or False:<br><br> You can convert your PowerPoint presentation in web pages.
jenyasd209 [6]

Answer:

true

Explanation:

4 0
3 years ago
Read 2 more answers
The indent buttons on the home tab allow you to increase or decrease paragraph indenting in increments of ____ inches.
TEA [102]
<span>0.5 inches.
You may also manually set the indentation. In order to do this, click the "Page Layout" tab and enter the desired values in the boxes under "Indent". The indentation of a text is the distance it has from the left margin (when writing from left to right).</span>
3 0
3 years ago
Other questions:
  • Spreadshet formula to add totals​
    12·1 answer
  • (Game Design) Which of the following is NOT a name of a popular digital sculpting application?
    13·1 answer
  • Where does communication take place?
    12·1 answer
  • How to calculate a pid controller
    8·1 answer
  • Elisa and Josh need to access General Help. Elisa will press the F1 key. Josh will click on ? in the upper-right corner of the W
    14·2 answers
  • Cable television, as well as some networks, uses ________ cable.
    10·1 answer
  • There is an enormous amount of information on the Internet that is automatically separated into good content and not-so-good con
    15·1 answer
  • Mrs. Brown is a teacher at the elementary school. As the school year begins, she sends a couple of email messages to her student
    11·1 answer
  • How to execute python code in command prompt *window*?
    5·1 answer
  • What are the two main types of citing information?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!