Seksjon 5. Kapittel 6
single
Challenge: Using the Range Function
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 5. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår