Search for question
Question

4. Write a program: (1) Define 2 int variables vx & vy. Use Scanner object to read from console and assign input values to them respectively. (2) Display the values

in console: "vx=a-value; vy-a-value" (3) Swap the values saved in vx and vy, display vx and vy again

Fig: 1

Fig: 2

Fig: 3

Fig: 4