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

How can I write a story about the doubles plus 2 fact 5+7=12.??
A passenger walks toward the rear of a moving train. Describe her motion as seen from a reference point on the train. Then describe it from a reference point on
Find the missing value for each rectangular prism. 1. Volume = 6 cu in Length = 3 in Width - 2 in Height = ____ 2. Volume = 96 cu yd Length = ____ Width = 6 yd
Rema is older than Ken. The difference if their ages is 12 and the sum if their ages is 50. Find the age if each.
What are three examples of cash transfer?
Find the missing value for each rectangular prism. 1. Volume = 6 cu in Length = 3 in Width - 2 in Height = ____ 2. Volume = 96 cu yd Length = ____ Width = 6 yd
What are combinations of numbers and operations.
Describe how an organism becomes a fossil? HELP ME!!!!!!!!!!!
How can I write a story about the doubles plus 2 fact 5+7=12.??
What is 7/9 as a percent? Rounded to the nearest tenth percent.