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

Why do you think the processes of photosynthesis and respiration are interrelated?
Whose geocentric model of the solar system was accepted for 1,400 years
5.27 rounded to the nearest tenth
Which statement about race relations in the North and South after Reconstruction is true? a. The South became integrated; the North remained segregated. b. The
what would happen if decomposition did not occur?
How is 45 minus negative 40=85
3 adjectives that describe an apple
The process of conducting business worldwide is a part of _____. -protectionism -urbanization -globalization -reparation
Which nation uses significant amounts of geothermal power?
Explain why 83 x 93 is not the prime factorization of 7,719