Question: What is printed by the following code? int num 1 = 5 ; int num 2 = 1 0 ; int num 3 = num

What is printed by the following code?
int num1=5;
int num2=10;
int num3= num1;
num1= num2;
num2= num1+10;
num3= num3+5;
System.out.println(num1);
System.out.println(num2);
System.out.println(num3);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!