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 observational learning, who are the most effective models?
what is -4(x-6)+5x=29-2
Evaluate and discuss the negative impact of youth risk behaviour on yourself and others(your community or society at large).refer to the 4 spheres of well-being
how do you solve 5+3x-x=25
during the scientific revolution both copernicus and galileo
What did the Alien and Sedition Acts do? Check all of the boxes that apply. They increased the residency requirement. They declared war with France. They made i
Which equation could be usedt o create the data on the table.. y=x+4 y=5x y=5x+1. Y=4x+1
A bag has four green marbles, three red marbles, and three yellow marbles. What is the probability that you pick a red marble, do not replace it, and pick a yel
¿tu mamá te _______________ salir en la nieve sin gorra o guantes? no, tenía que llevar mi abrigo, gorra y guantes cuando hacía frío.
how to solve 1/5(x+10)=5x+25