cynthiaagboma631
cynthiaagboma631 cynthiaagboma631
  • 03-08-2021
  • Computers and Technology
contestada

31. Explain what the program does. Write out the output 20 PRINT "Hellooo00000000000, world!" 30 PRINT "I'm learning about commands in BASIC." 40 PRINT 'This text is being printed via the PRINT commarrd. 2 209​

Respuesta :

khoa18050
khoa18050 khoa18050
  • 03-08-2021

o_num = input ("Please enter the amount of \"o\": ")

zero_num = input ("Please enter the amount of zeros: ")

i = 0

while i < o_num and i < zero_num:

repeat_o = "Hell" + o_num

repeat_zero = repeat_o + zero_num

i+=1

print (repeat_zero)

Answer Link

Otras preguntas

Why are jobs at food stands and restaurants good for college students?
Sara has 1 and 1/2 is a pizza leftover from the night before.she wants to spilt it up equally so that she can take the same amount of leftover pizza for lunch e
4. How do social media sites illustrate kindness?
Mitchell and Luke record the number of deliveries they each make for their family's restaurant. The results are shown in the box plots below. Select the true st
Find f(x) if it is known that f(3k)=3k+7.
What is the biggest difficulty in attempting to regulate the modern economy?
Alex is riding his bicycle to school. After 1 mile, he is a third of the way home. How much farther does he have to go?
Why do banks and other financial institutions require collateral for loans?
Basis for all living things every living thing contains this element
Which path is a Hamiltonian circuit?