0

Java Output

Hi! its been a long timešŸ˜Š im A learner wants to learn and take notes on challenge questions if its okay to you guys can you guys explain to me what happens to this code?need a clearer insight.tnx in advancešŸ˜€ Ok, im wondering how the answer becomes 3.2 like seriouslyšŸ’?i thought its 3.0. https://code.sololearn.com/cqNWJS9TZN4E/?ref=app

9th May 2018, 3:58 AM
Challenge Quest
Challenge Quest - avatar
11 Answers
+ 1
uid i guess my question deserves sarcastic reactionšŸ˜Š but i honestly dont have an idea why output is 3.2 not 3.0šŸ˜¶
9th May 2018, 4:17 AM
Challenge Quest
Challenge Quest - avatar
+ 1
Donna no i mean ,im confused 3.2 is output which i thought is 3.0.16/5 is 3 right? i thought its just the same but with decimal places which is 3.0
9th May 2018, 6:14 AM
Challenge Quest
Challenge Quest - avatar
+ 1
thanks,Donna im going to take the explanation for further review not really good at math aye!šŸ˜²
9th May 2018, 6:25 AM
Challenge Quest
Challenge Quest - avatar
+ 1
remember this.. Challenge Quest.. integers/integers =integer means 9/4=1 16/5=3 by float/integers=float or integer/float=float 16.0/5=3.2 16/5.0=3.2 these rules valid for multiplication also.. hope you understand the concept
9th May 2018, 6:52 AM
Arun Tomar
Arun Tomar - avatar
+ 1
Thank Arun Tomar i know i look a bit silly with these question since a calculator could simply answer it im just so confused with these data-types conversions right now. thanks for the additional statement,it could be helpfulšŸ˜Š
9th May 2018, 7:18 AM
Challenge Quest
Challenge Quest - avatar
+ 1
Dont look down... everyone not good in everything.. what is matter how you overcomes your problem.. that make you smart person happy coding (-_-)
9th May 2018, 7:24 AM
Arun Tomar
Arun Tomar - avatar
0
im waiting for any answer šŸ˜… uid it's not yet cleared to mešŸ¾
9th May 2018, 4:54 AM
Challenge Quest
Challenge Quest - avatar