セクション 2. 章 5
single
Challenge: Converting Kilometers to Miles
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 2. 章 5
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください