编写一个计算你的狗在“狗”年的年龄的程序。下面是您的程序与用户之间的交互示例:
你的狗多大了
你的狗在“狗”年龄是21岁。
我的代码:
age = input("How old is your dog: ")
dogage = age*7
print("Your dog is ",dogage," in dog years")
发布于 2020-01-08 10:19:42
age = input("How old is your dog: ")
dogage = int(age)*7
print("Your dog is ",dogage," in dog years")
https://stackoverflow.com/questions/59643699
复制相似问题