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

Its such pity you cant go tonthe dance with your friends. Which definition of pity matches it use in the sentence above. A sympathetic sorrow for one suffering
what represents/symbols a difficult experience? (For example a heart symbols a heart)
Hello, please, can you help me? Thank you very much, I am French I learn your language.
what happens in the phloem
5t 8=43 whats t.I WILL GIVE 50 POINTS AND IF YOU DONT RECEIVE THE POINTS TELL ME AND I WILL GIVE THEM.PLZ HELP MEEEEEEEEEEEEEEEEEEEEEEE
Write a 3- digit number using digits 2,9,4 draw a quick picture to show the value of your number
20% of what equals 1581.01
if 3 pieces of candy cost $2.10, how much would four pieces cost
What causes Hawaii to have volcanoes?
If you multiply two decimals less than 1, can you predict whether the product will be less than or greater than either of the factors? Explain.