day2作业

#申小龙
dj=float(input(“请输入单价”))
jinshu=float(input(“请输入斤数”))
money=djjinshu
if money>=300:
vip=int(input(“请输入vip级别:”))
if vip==1:
money
=0.8
print(“8折后”,money)
else:
fq=int(money)-int(money)%10
print(fq)
else:
print(“付钱:”,money)
print(“送苹果一个”)

money=int(input(“请输入钱:”))
while money>=10:
money-=10
print(“吃西瓜,剩下”,money,“元”)
print(“我的钱是”,money)

he=0
i=1
while i<=100:
he+=i
i+=1
print(he)

ji=1
i=50
while i>=30:
ji*=i
i-=3
print(ji)

ji=1
i=30
while i<=50:
if i%30 or i%70:
ji*=i
print(ji)
i+=1

#申小龙
for i in range(3,67,8):
print(i)
print(“结束”)

he=0
for i in range(1,101):
he+=i
print(he)

i=200
for i in range(200,301):
gw=i%10
sw=i//10%10
if gw+sw==10:
print(i)

i=30
ji=1
for i in range(30,51):
if i%30 or i%70:
ji*=i
print(ji)

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
break
i+=1
print(“继续”)

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
continue
i+=1

j=1
while j<=5:
i=1
while i<=5:
print("*",end=’’)
i+=1
print()
j=+1

i=1
while i<5:
j=1
while j<i:
print("*",end=’’)
j+=1
print()
i+=1

a=int(input(“请输入整数:”))
i=2
while i<a:
if a%i==0:
print(a,“不是质数”)
break
i+=1
else:
print(a,“是质数”)

i=1
while i<=10:
print(i)

i=10
while True:
print(i)

line=1
while line<10:
colume=1
while colume<=line:
print("{}{}={}".format(colume,line,columeline),end=’\t’)
colume+=1
print()
line+=1

#申小龙 第二遍
dj=float(input(“请输入单价:”))
jinshu=float(input(“请输入斤数”))
money=djjinshu
if money>=300:
vip=int(input(“请输入vip等级”))
if vip==1:
money
=0.8
print(“8折后”,money)
else:
fq=int(money)-int(money)%10
print(fq)
else:
print(“付钱:”,money)
print(“送苹果一个”)

money=int(input(“请输入钱:”))
while money>=10:
money-=10
print(“吃西瓜,剩下”,money,“元”)
print(“我的钱是,”,money)

he=0
i=1
while i<=100:
he+=i
i+=1
print(he)

ji=1
i=50
while i>=30:
ji*=i
i-=3
print(ji)

for i in range(3,43,3):
print(i)
print(“结束”)

he=0
for i in range(1,101):
he+=i
print(he)

i=200
for i in range(200,301):
gw=i%10
sw=i//10%10
if gw+sw==10:
print(i)

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”))
if score<0:
print(“异常”)
break
i+=1

i=1
while i<10:
print(i)

i=10
while True
print(i)

j=1
while j<=5:
i=1
while i<=5:
print("*",end=’\t’)
i+=1
print()
j+=1

i=1
while i<5:
j=1
while j<=i:
print("*",end=’\t’)
i+=1
print()
j+=1

a=int(input(“请输入整数:”))
i=2
while i<a:
if a%i==0:
print(a,“不是质数”)
break
i+=1
else:
print(a,“是质数”)

line=1
while line<10:
colume=1
while colume<=line:
print("{}{}={}".format(colume,line,columeline),end=’\t’)
colume+=1
print()
line+=1

#第三遍
money=int(input(“请输入钱:”))
while money>10:
money-=10
print(“吃西瓜,剩下”,money)
print(“我的钱是”,money)

he=0
i=1
while i<100:
he+=i
i+=1
print(he)

ji=1
i=50
while i>=30:
ji*=i
i-=3
print(ji)

for i in range(2,34,2):
print(i)
print(“结束”)

he=0
for i in range(1,101):
he+=i
print(he)

i=200
for i in range(200,301):
gw=i%10
sw=i//10%10
if gw+sw==10:
print(i)

i=30
ji=1
for i in range(30,51):
if i%30 or i%70:
ji*=i
print(ji)

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
break
i+=1

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
continue
i+=1

j=1
while j<=5:
i=1
while i<=5:
print("*",end=’\t’)
i+=1
print()
j+=1

a=int(input(“请输入整数:”))
i=2
while i<a:
if a%i==0:
print(“不是质数”)
break
i+=1
else:
print(a,“是质数”)

line=1
while line<10:
colume=1
while colume<=line:
print("{}{}={}".format(colume,line,columeline),end=’\t’)
colume+=1
print()
line=+1

#第四遍
money=int(input(“请输入钱:”))
while money>=10:
money-=10
print(“吃西瓜,剩下”,money)
print(“我的钱是”,money)

he=0
i=1
while i<=100:
he+=i
i+=1
print(he)

ji=1
i=50
while i>=30:
ji*=i
i-=3
print(ji)

for i in range(2,33,4):
print(i)
print(“结束”)

he=0
for i in range(1,101):
he+=i
print(he)

i=200
for i in range(200,301):
gw=i%10
sw=i//10%10
if gw+sw==10:
print(i)

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
break
i=+1

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
continue
i=+1

i=1
while i<5:
j=1
while j<=i:
print("*",end=’\t’)
j+=1
print()
i+=1

a=int(input(“请输入整数:”))
i=2
while a>i:
if a%i==0:
print(“不是质数”)
break
i+=1
else:
print(a,“是质数”)

line=1
while line<10:
colume=1
while colume<=line:
print("{}{}={}".format(colume,line,columeline),end=’\t’)
colume+=1
print()
line+=1

#第五遍

money=int(input(“请输入钱:”))
while money>=10:
money-=10
print(“吃西瓜,剩下”,money)
print(“我的钱是”,money)

he=0
i=1
while i<=100:
he+=i
i+=1
print(he)

ji=1
i=50
while i>=30:
ji*=i
i+=1
print(ji)

for i in range(2,345,2):
print(i)
print(“结束”)

he=0
for i in range(1,101):
he+=i
print(he)

i=200
for i in range(200,301):
gw=i%10
sw=i//10%10
if gw+sw==10:
print(i)

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
break
i+=1

i=1
while i<=10:
score=int(input(“请输入第%d个人的成绩”%i))
if score<0:
print(“异常”)
continue
i+=1

i=1
while i<5:
j=1
while j<=i:
print("*",end=’\t’)
j+=1
print()
i+=1

a=int(input(“请输入一个整数”))
i=2
while a>i:
if a%i==0:
print(“不是质数”)
break
i+=1
else:
print(a,“是质数”)

line=1
while line<10:
colume=1
while colume<=line:
print("{}{}={}".format(colume,line,columeline),end=’\t’)
colume+=1
print()
line+=1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值