magayuma278
magayuma278 magayuma278
  • 17-01-2022
  • Computers and Technology
contestada

Use a for loop to output all multiples of 10 , starting at 10 and going to and including 1000?
This is python
Pls help!!

Respuesta :

TheOnlyLman3613
TheOnlyLman3613 TheOnlyLman3613
  • 17-01-2022

Answer:

def main():

 for i in range(10,1010,10):

   print(str(i))

main()

Explanation:

def main(): # Creates main function

 for i in range(10,1010,10): # is an iteration that starts at 10, ends at 1010 and skips 10 numbers per iteration

   print(str(i)) # Outputs each multiple of 10

main() # Calls the main function

Hope this helps :)

Answer Link

Otras preguntas

CORRECT ANSWER GETS BRAINLIEST!!
Crowder Company acquired a tract of land containing an extractable natural resource. Coronado is required by its purchase contract to restore the land to a cond
The number of possible monobromination products, including cis-trans isomers, of methylcyclopentane is:________ A) 2 B) 3 C) 4 D) 5 E) 6
Can you think of an artistic style or medium that you find too rigid or limiting? If you were a modern artist, how would you change your style to show an intent
What is the smallest division on this balance? 1g 0.1g 0.01g 0.001g
How do you solve this ??
A healthy garden needs more than just a good gardener and plants. The animal Kingdom has many helpers for the gardener. Ladybugs eat small bugs that eat plant l
Why are all even numbers greater than two composite
− 4 v − 25 > 2 v + 17
What kind of source did Margaret Ellen Newell use to learn more about native American slavery and Colonial America