Challenge: Converting Kilometers to Miles
Compito
Swipe to start coding
You are traveling from San Francisco to New York. The distance between them is approximately 4677.4 kilometers. You want to calculate the distance in miles.
- Convert the distance from kilometers to miles by dividing
distance_in_kilometersby 1.609. Store the result in the variabledistance_in_miles. - Create a variable called
int_distance_in_milesto store the integer distance in miles. - Convert the value of
distance_in_milesto an integer and store it in the variableint_distance_in_miles.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 5
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Riassuma questo capitolo
Explain code
Explain why doesn't solve task
Fantastico!
Completion tasso migliorato a 1.67
Challenge: Converting Kilometers to Miles
Scorri per mostrare il menu
Compito
Swipe to start coding
You are traveling from San Francisco to New York. The distance between them is approximately 4677.4 kilometers. You want to calculate the distance in miles.
- Convert the distance from kilometers to miles by dividing
distance_in_kilometersby 1.609. Store the result in the variabledistance_in_miles. - Create a variable called
int_distance_in_milesto store the integer distance in miles. - Convert the value of
distance_in_milesto an integer and store it in the variableint_distance_in_miles.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 5
single