Python Division
Task
The provided code stub reads two integers,a and b, from STDIN.
Add logic to print two lines. The first line should contain the result of integer division, a//b. The second line should contain the result of float division,a / b.
No rounding or formatting is necessary.
Solution:
a = int(input()) b = int(input()) print(a//b) print(a/b) |
Note:
This Code is Verified by all Test Cases.If any error occurs then Comment correct code Below in comment box.
Disclaimer:-
The above hole problem statement is given by hackerrank.com, but the solution is generated by the CodexRitik . if any of the query regarding this post or website fill the following contact form Thank You.
Python: Division - Hackerrank solution
Reviewed by CodexRitik
on
March 15, 2020
Rating:
![Python: Division - Hackerrank solution](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT-c2YJMTy15gzM_68mgjlWh8aRvW1TfvMU2hZ_RVoVJ2j3U3ve3GINiJGULOraG4GMzWbuYx720zKYrIPVk5TH8g6V9aVtjkxFEKjp3cj-DlDBF-bWIKZpjJS4sT7DPTmCINm1E02Ofc/s72-w200-c-h146/PicsArt_12-05-08.28.13%255B1%255D.jpg)
It's too much easy man who are not understanding?
ReplyDeleteWhatsapp Web Apk
i have applied the same code but it is showing error
ReplyDelete