Challenge: Working with the While Loop
Tehtävä
Swipe to start coding
-
Create a variable named
iand set it to1. -
Begin a
whileloop that runs for numbers from1to9(inclusive). Inside the loop, do the following:- Print the square of
i; - Increment
iby1.
- Print the square of
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.64
Challenge: Working with the While Loop
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
-
Create a variable named
iand set it to1. -
Begin a
whileloop that runs for numbers from1to9(inclusive). Inside the loop, do the following:- Print the square of
i; - Increment
iby1.
- Print the square of
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 2
single