Challenge: Using the Range Function
Swipe to start coding
Using a for loop, print all the numbers from 10 to 20 (inclusive) squared (100, 121, 144, and so on). Make sure your output includes the squares of both the starting number (100) and the ending number (400).
Note
The square operator should only be applied in the
forloop should just iterate from10to20.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.64
Challenge: Using the Range Function
Veeg om het menu te tonen
Swipe to start coding
Using a for loop, print all the numbers from 10 to 20 (inclusive) squared (100, 121, 144, and so on). Make sure your output includes the squares of both the starting number (100) and the ending number (400).
Note
The square operator should only be applied in the
forloop should just iterate from10to20.
Oplossing
Bedankt voor je feedback!
single