aboalochaq2007oy1ebv aboalochaq2007oy1ebv
  • 18-10-2017
  • Computers and Technology
contestada

Write a complete java program that will display the word CS and the number 140, each on its own line.

Respuesta :

Louli
Louli Louli
  • 25-10-2017
The code will contain only the main class.
Note that to print two lines using only one command, we will use "\n" command.

The code will be as follows:
public class PrintSeparateLines {
public static void main (String[]args)
{ 
   System.out.println("CS"  + "\n" + "140");
}
}

The output of this code will be:
CS
140
Answer Link

Otras preguntas

In the Neolithic age agricultural
a sum of $6000 is divided into 3 parts in the ratio 5:4:3 . The smallest portion is?​
What elements are appropriate to include in the conclusion of an argumentative essay? Check all that apply. a transition from the body of the essay a restatemen
work ou the value of 19+7÷2-5helllppp pls ​
Solve Y^2 +9y+2=8y+58
What is the control in the experiment?
Plzz help me fast (There is both physics and chemistry question ) 1) Write the molecular formula of the following by crisscross method : 1. Potassium sulphat
A ladder reaches 6 m up a wall with its foot 2·4 m from the wall. A person standing under the ladder at a point 80 cm from its foot would be able to touch the l
Erosion moves the Earth's surface through all of the following EXCEPT _____. Select all that apply. wind currents glaciers streams landslides floods plants free
which of the following not a hardware componet​