int x = 10; x = ; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

int x = 10; x = ;

why is it not working,smby help me

14th Sep 2019, 9:45 AM
Isaac Muniu Kibe
Isaac Muniu Kibe - avatar
7 Answers
+ 3
According to the task, you are supposed to use the /= operator, to assign the original value of x divided by 5, to x. So int x = 10; x /= 5;
14th Sep 2019, 9:52 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Well, what are you trying to do? Are you trying to assign a different value to variable x?
14th Sep 2019, 9:46 AM
Hatsy Rei
Hatsy Rei - avatar
0
Yes! Im trying to assign a different value to variable x
14th Sep 2019, 9:48 AM
Isaac Muniu Kibe
Isaac Muniu Kibe - avatar
0
Fill in the missing part of the following code to divide x by 5 using the /= operator. int x = 10; x = ;
14th Sep 2019, 9:51 AM
Isaac Muniu Kibe
Isaac Muniu Kibe - avatar
0
Thanks Hatsy!It worked
14th Sep 2019, 9:58 AM
Isaac Muniu Kibe
Isaac Muniu Kibe - avatar
0
x /= 5;
17th Mar 2022, 4:24 AM
Najwan Najmussabah
- 3
How to solve this
29th Apr 2021, 11:31 AM
Nikhil M G