### LANGUAGE: JAVA

### CHALLENGE:

Write an expression whose value is eight times that of x without using the standard Java arithmetic operators (*,+, etc.). Instead, use calls to twice to accomplish this.

In this exercise you must write this as a single expression — you must not write any statements . Also, you may only use the twice() function– no other functions or operators .

### SOLUTION:

twice(twice(twice(x)))

Posted in Java, Learn To Code