Есть ответ 👍

Write a C++ program in which the Time lesson is implemented, the objects of which represent time. Time is given in hour (0 to 23) և minute (0 to 59) fields. The program should receive information about N time at the entrance, hours և minutes, then it should display the 2 times closest to noon. The time that comes earlier in the day should be displayed first. Input data
3
10 25
9 10
14 25
Result of work
10 25
14 25​

240
443
Посмотреть ответы 1

Ответы на вопрос:


n=in(input())

if n == 0

print (0)

else:

a, b = 0,01

for i in range(2, n + 1 ) :

a, b = b, a +b

print b

ИЛИ

n, m = 1, 1

n, m = 1, 1a = int(input("A = "))

n, m = 1, 1a = int(input("A = "))while m <= a:

n, m = 1, 1a = int(input("A = "))while m <= a: n, m = m, m + n

n, m = 1, 1a = int(input("A = "))while m <= a: n, m = m, m + nprint(n)

Популярно: Информатика