-7
Write a program in Java with what is requested below.
A - Declare the variables X, Y and Z of type int. B - Assign 10 to variable X. C - Assign 2 to variable Y. D - With the help of the variable Z invert the values of X and Y. E - Print the values of variables X, Y and Z respectively.
obs. I’m starting the Java course now and I’m not getting to ask this question, can anyone help me?
Demonstrate that you had some effort and show what you tried by editing the question and adding, even if you did not request the problem.
– user28595
What have you tried? What difficulty are you having? Post your code. Stackoverflow is not a site to search for ready-made codes
– Costamilam
Add a minimum, complete, verifiable example https://answall.com/help/mcve
– Flávio Granato