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:
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