subject

Write a program that asks the user for their name and how many times to print it. If I enter Ada and 3 it should print:

Ada
Ada
Ada

Which loop correctly does this?

name = input("Enter your name: ")
num = int (input("Enter a number: "))

c = 1

while (c > num):
print (name)
c = c + 1

name = input("Enter your name: ")
num = int (input("Enter a number: "))

c = 1

while (c <= num):
print (name)
c = c + 1

name = input("Enter your name: ")
num = int (input("Enter a number: "))

c = 1

while (num <= name):
print (name)
c = c + 1

name = input("Enter your name: ")
num = int (input("Enter a number: "))

c = 1

while (c <= num):
print (name)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories.
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
You know the right answer?
Write a program that asks the user for their name and how many times to print it. If I enter Ada an...
Questions
question
Mathematics, 26.12.2019 10:31
Questions on the website: 13722361