题解 | #除法与取模运算#
除法与取模运算
https://www.nowcoder.com/practice/9fe22ac9e55448f4920886f84efeac58
def fun(x,y): if y != 0: a = x // y b = x % y c = x / y print('{} {}\n{:.2f}'.format(a,b,c)) x = int(input()) y = int(input()) fun(x,y)
除法与取模运算
https://www.nowcoder.com/practice/9fe22ac9e55448f4920886f84efeac58
def fun(x,y): if y != 0: a = x // y b = x % y c = x / y print('{} {}\n{:.2f}'.format(a,b,c)) x = int(input()) y = int(input()) fun(x,y)
相关推荐