andrusandy43 andrusandy43
  • 22-03-2021
  • Computers and Technology
contestada

Write and compile a java code to add 18+6?

Respuesta :

klekaelly
klekaelly klekaelly
  • 22-03-2021

Answer:

public class testing

{

   public static void main(String[] args)

   {

       int x = 18;

       int y = 6;

       System.out.println(addNumbers(x, y));

   }

   public static int addNumbers(int a, int b)

   {

       return a + b;

   }

}

Answer Link

Otras preguntas

Identify each histogram as symmetric, positively skewed, or negatively skewed. A._____ B._____ C._____
You need to attend a very specialized school to learn about baroque music. O True False
!!!!!!!!! PLEASE HELP !!!!!!!!!! Solve x² - 6x - 7 = 0
Which of the following generations of plants is responsible for producing the sperm and eggs? gametophyte sporophyte
How do mitosis and meiosis differ? a. During mitosis and cell division, a body cell and its nucleus divide once and produce two different cells. b. During mitos
Jeremiah's pet lizard ate 46 pounds of food during April. There are 30 days in the month April . At that rate how many days would a 100 pound bag of lizard food
o please help meeeeeee​
Q Search CR FSA Review - EE 11 and EE 2.4 (Intensive Mathematics - Period 3) Close Question Trina increased the water in her new backyard fish pond by forty gal
1. What is the experimental probability of not landing on a 6? 2. What is the theoretical probability of not landing on a 6?
What is the power of a circuit with voltage 12 V and current 8.0 A?