Avsnitt 5. Kapitel 6
single
Challenge: Using the Range Function
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 5. Kapitel 6
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal