feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
def readInts():
ints = []
while True:
num = input("Inserisci un numero: ")
if num == "":
break
ints.append(int(num))
return ints
def main():
nums = readInts()
maxFound=False
for i in range(1, len(nums) -1):
if nums[i-1] < nums[i] > nums[i+1]:
print("Massimo locale all'indice", i)
maxFound = True
if not maxFound:
print("Non ho trovato massimi locali")
main()