Section 1. Chapitre 1
single
With correct unit test
Glissez pour afficher le menu
Here correct unit test
Tâche
Glissez pour commencer à coder
The road distance between San Francisco and New York is approximately 4677.4 km. This distance is stored in the variable distance_in_kilometers.
Here's what you need to do:
- Convert the distance from kilometers (
distance_in_kilometers) to miles by dividing it by1.609. Store the result in the variabledistance_in_miles. - Create a variable
int_distance_in_miles. - Convert the variable
distance_in_milesto an integer data type. - Store the value of
distance_in_milesas an integer in the variableint_distance_in_miles.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 1
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion