Commit 08f3f557 by BellCodeEditor

save project

parent 3a450d9e
Showing with 19 additions and 5 deletions
......@@ -11,7 +11,22 @@
# pen.hideturtle()
# turtle.done()
for a in range(1,10):
for i in range(1,a+1):
print(a,'*',i,'=',(a*i),end=" ")
print()
\ No newline at end of file
# for a in range(1,10):
# for i in range(1,a+1):
# print(a,'*',i,'=',(a*i),end=" ")
# print()
# for i in range(6):
# print(i,end=" ")
# a=0
# while True:
# print(a,end=" ")
# a+=1
# if a==6:
# break
a=int(input("请输入奶牛的头数:"))
print(a,"头奶牛七天可产",a*20*7,"千克奶")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment