Write a java program which will produce the following output. No variables are needed but the program must use numbers and math operators for all the results. In other words, you cannot simply include all the answers inside the quotes. The calculations must be done by the computer

Respuesta :

The question did not include the output to be produced. However, below are the outputs.

My age is 21

Twice my age is 42

Three times my age is 63

ANSWER:

public class NewClasss{

   public static void main(String[] args) {

   int x,y,z;

   x = 21;

   y = 2*x;

   z=3*x;

   System.out.println("My age is " + x);

   System.out.println("twice my age is " + y);

   System.out.println("three times my age is " + z);

   

   }

  }

RELAXING NOICE
Relax