Wednesday, December 14, 2016

Python: Division

Task
Read two integers and print two lines. The first line should contain integer division, // . The second line should contain float division, / .
You don't need to perform any rounding or formatting operations.
Input Format
The first line contains the first integer, . The second line contains the second integer, .
Output Format
Print the two lines as described above.
Sample Input
4
3
sample Output
1
1.3333333333333333 
 
 
 
Python 2.0 Code:
 
a=int(raw_input())
b=int(raw_input())

print a//b

print a/b