20.5k views
5 votes
Given the following code segment, int x = 50; int y = 15; int z = x / y; what is the value assigned to z?

1 Answer

4 votes

Z would equal

10 over 3

3.3 repeated

and 3 (as a whole) 1 over 3 All are answers,just as exact form, decimal, and mixed number form

User Billoverton
by
5.8k points