Answer:
See the code snippet in the explanation section
Step-by-step explanation:
import java.util.Scanner;
public class BareBonesProgram{
public static void main (String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Please enter the value of x: ");
int x = scan.nextInt();
int z = 4 * x;
System.out.println("The value of z is: " + z);
System.out.println("The value of x is: " + x);
}
}