last lab
This commit is contained in:
16
labPython/lab2/Series15.py
Executable file
16
labPython/lab2/Series15.py
Executable file
@@ -0,0 +1,16 @@
|
||||
K = int(input())
|
||||
numlist=[]
|
||||
num = 1
|
||||
while(num!=0):
|
||||
num = int(input())
|
||||
numlist.append(num)
|
||||
|
||||
count=0
|
||||
for i in range(len(numlist)):
|
||||
if numlist[i] > K:
|
||||
print(i)
|
||||
count =1
|
||||
break
|
||||
|
||||
if count == 0:
|
||||
print(numlist[-1])
|
||||
Reference in New Issue
Block a user