Yanış anlamadıysam Python ile şu şekilde olabilir:
time = float(input('Süreyi girin (34.924 vs. şeklinde): '))
i = 1
while True:
low = i * 2.7
high = i * 2.999
if time >= low and time <= high:
print('Bölünecek sayı:', i, 'Bölümler', round(time / i, 4), 'sn.')
break
next_low = (i + 1) * 2.7
if time >= high and time <= next_low:
print('Eklenecek süre:', round(next_low - time, 4))
print('Bölünecek sayı:', i + 1, 'Bölümler: ', round(next_low / (i + 1), 4), 'sn.')
break
i += 1Python kurulu değilse
https://repl.it/languages/python3 adresinden deneyebilirsiniz.