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
11 Respuestas
+ 1
uid i guess my question deserves sarcastic reaction😊 but i honestly dont have an idea why output is 3.2 not 3.0😶
+ 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
+ 1
thanks,Donna im going to take the explanation for further review not really good at math aye!😲
+ 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
+ 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😊
+ 1
Dont look down...
everyone not good in everything..
what is matter how you overcomes your problem..
that make you smart person
happy coding (-_-)
0
im waiting for any answer 😅 uid it's not yet cleared to me🐾