What will be the java output of the given function when
invoked?
public void show()
long num = 234455, sum = = 0;
do
{
sum *= 10;
long y = num % 10;
sum += y;
num /= 10;
} while(num != 0);
System.out.println("The Output = " + sum);
}
Answers
Answered by
1
Answer:
sum *= 10;
long y = num % 10;
sum += y;
num /= 10;
} while(num != 0);
Similar questions