Commit c5341ae7 by BellCodeEditor

save project

parent e685c3a6
Showing with 29 additions and 4 deletions
# 我们都爱夸夸夸
name=input("你的名字")
print(name+"你好!")
\ No newline at end of file
n = int(input())
k = 0
while n>0:
m = int(input())
if m>k: # 获得最大值
k = m
n = n-1
print(k)
n = int(input())
k = 101
while n>0:
m = int(input())
if m<k: # 获得最小值
k = m
n = n-1
print(k)
n = int(input())
max = 0
min = 1001
while n>0:
m = int(input())
if max<m: #获得最大值
max = m
if min>m: #获得最小值
min = m
n = n-1
print(max-min)
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