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

Ruby baked 10 cakes on Monday, 12 cakes on Tuesday, 17 cakes on Wednesday and 21 cakes on Thursday. What is the mean number of cakes ruby baked from Monday-Thur
The diagram below represents an experiment consisting of two independent trials. Find P(A and D). ​
This dialogue represents which element of a Shakespearean tragedy?
AB is the line segment, M is the midpoint of AB. A is (-4,5) and M is (5, -1), what are the coordinates of B?
1. Entrepreneurship Def: Human effort that takes(missing word) the of bringing the other 3 factors of production (Land, Labour, Capital) together to a good or s
7 1 /4 x − x =9 3/ 8
Ms. florence wants to paint her room. The floor of the room is 5m long and 4m wide. The room is 3m high. The room has two doors each fixed in the walls that are
solve for x using the quadratic formula 3x^2+10=8
women are disproportionately underrepresented in prison
3 current human rights violations to living in a safe and healthy environment