Предмет: Информатика, автор: Аноним

УМОЛЯЮ ПОМОГИТЕ СРОЧНО. ЭТУ ЗАДАЧУ НАДО РЕШИТЬ В КОМПИЛЯТОРЕ ПИТОН ОНЛАЙН ДАМ 40 баллов прошу
зная длину своего шага человек может приближено высчитать пройденное расстояние s по формуле s=kl, где k-количество шагов, а l- длина шага в сантиметрах. Найти и ввести на экран расстоянии пройденные человеком в километрах

Ответы

Автор ответа: onetfriend
0

Ответ:

Объяснение:

#Пройденный путь в зависимости от длины шага и количества шагов

print('Введите количество шагов')

k = int(input())

print('Введите длину шага в сантиметрах')

l = int(input())

s = k * l/(100 * 1000)

print('Пройденный путь s=', round(s, 2), 'км')

Приложения:

onetfriend: да
onetfriend: если что. в последней строке я округляю километры до двух цифр после запятой
onetfriend: не поняла вопроса?
onetfriend: на скрине слева программа в онлайн-компиляторе. справа - результат ее выполнения. В ответе, в объяснении - скопировала из компилятора и вставила в ответ
onetfriend: Ну то есть, вот, на скринах - она работает...я же не нарисовала их сама а просто заскринила
onetfriend: @triniti_zero
Похожие вопросы
Предмет: Английский язык, автор: mirochkamochuk
FIRST AND SECOND CONDITIONALS Exercise 1 Put the verb in the correct form to complete each sentence (in the first or second conditional). 1. If global warming continues, temperatures 2. What would you do if you___ 3. If people stopped using cars completely, there 4. When it 5. If I spoke English fluently, I 6. If Siberia 10. Where 11. If you Exercise 2 7. Tom will be at the party tonight. If I see him, I 8. If it 9. (rain) again, I won't forget to bring my umbrella. (not/need) to take lessons. (not/be) so cold, I'd go there in winter. (say) hello. (not/rain) so much in England, you wouldn't see so many umbrellas. (call) you when I get home. (you/live) when you move out of your flat? (can) choose any company, which company would you like to work for? (win) a million dollars? Study each situation and complete the sentence below. Decide whether to use a first or second conditional structure. 3. John works 12 hours a day. If John 1. According to the weather forecast there is a chance of snow tomorrow. (snow), I (need) to buy a pair of gloves. 2. Patrick is deciding whether to go to France or Spain on his next holiday. If Patrick (go) to Spain, he 7. (not/be) so busy, he 4. Kate is out of work, but she goes shopping every day. (continue) to go shopping, she If Kate 5. It is a sunny day with clear blue skies. (rain), I 6. Anne's boss is very demanding. If Anne's boss_ (rise) even higher. Daniel has an exam If Daniel (be) much less pollution. 8. Fabio and Carlo are best friends. If Fabio and Carlo together. (not/be) so demanding, she tomorrow. (pass) his exam, he (be) very satisfied. (need) an umbrella. (have) more time for his family. (run out) of money. (not/be) so stressed. (celebrate) with his friends. (not/be) best friends, they probably (not/be) living​
Предмет: Алгебра, автор: vorobjovamiroslava3
Предмет: Математика, автор: valeriatik