float and int
Let's continue the last task.
Завдання
Swipe to start coding
Consider the variables from the previous chapter, and new variable velocity
(in miles per hour). Your tasks are:
- Find out number of hours that needed to pass the distance (
dist_mi
) with constant speed (velocity
). Save this result withintime_h
variable, and output the result. - Calculate how many full days this trip will take using
time_h
variable. Save this number withintime_days
variable, and output the result. Note, that there you need to round up this number. You can do it by converting to integer, and adding 1 day.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 3
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.33Awesome!
Completion rate improved to 2.33
float and int
Let's continue the last task.
Завдання
Swipe to start coding
Consider the variables from the previous chapter, and new variable velocity
(in miles per hour). Your tasks are:
- Find out number of hours that needed to pass the distance (
dist_mi
) with constant speed (velocity
). Save this result withintime_h
variable, and output the result. - Calculate how many full days this trip will take using
time_h
variable. Save this number withintime_days
variable, and output the result. Note, that there you need to round up this number. You can do it by converting to integer, and adding 1 day.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 3
single
Awesome!
Completion rate improved to 2.33
float and int
Свайпніть щоб показати меню
Let's continue the last task.
Завдання
Swipe to start coding
Consider the variables from the previous chapter, and new variable velocity
(in miles per hour). Your tasks are:
- Find out number of hours that needed to pass the distance (
dist_mi
) with constant speed (velocity
). Save this result withintime_h
variable, and output the result. - Calculate how many full days this trip will take using
time_h
variable. Save this number withintime_days
variable, and output the result. Note, that there you need to round up this number. You can do it by converting to integer, and adding 1 day.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!