+ 3
Floating Point Check
In this code , if we give (1/2)*m*n whatever may be the input , the answer will be zero because the computer executes (1/2) as zero.That is because the variable is of integer.If we give it as (1.0/2.0) , we will get the exact output.Now it works because they are in floating type. Hope this helps you...!!! https://code.sololearn.com/cyqsLG6jwnb9/?ref=app
2 ответов
+ 17
put all this in comment of your code &
//u can advertise your code in advertising threads :::
https://www.sololearn.com/Discuss/830853/?ref=app
https://www.sololearn.com/Discuss/452626/?ref=app
https://www.sololearn.com/discuss/347139/?ref=app
+ 3
tk u @gaurav