Computers and Technology, 03.12.2020 06:50 selfiegymnast
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)
Answers: 2
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
Computers and Technology, 22.06.2019 18:00
When is it appropriate to use an absolute reference
Answers: 1
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
Computers and Technology, 24.06.2019 06:30
For which utilities, if any, does the landlord pay?
Answers: 2
Write a program that asks the user for their name and how many times to print it.
If I enter Ada an...
Mathematics, 01.11.2019 04:31
Biology, 01.11.2019 04:31
English, 01.11.2019 04:31
English, 01.11.2019 04:31
Chemistry, 01.11.2019 04:31
Physics, 01.11.2019 04:31
Health, 01.11.2019 04:31
Mathematics, 01.11.2019 04:31
Mathematics, 01.11.2019 04:31
Physics, 01.11.2019 04:31
English, 01.11.2019 04:31