New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How 5/9=5
12 Answers
+ 13
5/9=5 is not right.. Maybe you meant 5%9=5.
+ 3
5/9=0
5%9=5
9/5=1
9%5=4
5 divided by 9 is never 5 and can't find this in the quiz somewhere
+ 2
Did you mean 5%9 = 5?
Because 5%9 would return 5
+ 1
Maybe 50/9 51/9 52/9 53/9
+ 1
5/9==5 # is a boolean false
puts 45/9
puts 46/9
puts 47/9
puts 48/9
puts 49/9
puts 50/9
puts 51/9
puts 52/9
puts 53/9
All of those are equal to 5, and if you divide them by 9.0, the result is:
puts 45/9.0
puts 46/9.0
puts 47/9.0
puts 48/9.0
puts 49/9.0
puts 50/9.0
puts 51/9.0
puts 52/9.0
puts 53/9.0
5.0
5.111111111111111
5.222222222222222
5.333333333333333
5.444444444444445
5.555555555555555
5.666666666666667
5.777777777777778
5.888888888888889
+ 1
Alvaro , could you please explain your answer.
+ 1
I think the app os not working properly on his phone and he only sees 5/9
0
no
it is 5/9
0
@Sulaiman Dawood
Since I didn't undestand the question "How 5/9=5", I answered about all the possible things he was asking.
First I told him it could result in a false if it is a boolean, but for that it must have two equal signs.
Then I told him which divisions results in "5". Those result in 5 because it cuts off the decimals.
If he wants to see the decimals, the he has to put decimas in one of the numbers of the equation, like dividing by "9.0".
I forgot to say that -->
puts 5/9 # outputs 0
But I need to know what is he asking about.
0
Alvaro I'm asking how 5/9 becomes equal to 5
since it is there in the quiz during that course
0
Syed, I can't access directly to the question from her ¿Coud you please copypaste it?
0
yea 5%9 but would it be 4 because it is the remainder of the divison operation