题解 | #除法与取模运算#

除法与取模运算

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)

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-11 17:10
什么素质,我请问呢,要掉小珍珠了。。。又憋屈又生气
Steven267:这不喷回去?花钱是大爷,记住这个道理
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务