Write a program to take the name as input from user and assign different comment to against each user. Use a loop to repeat the above process.
e.g. if user enters a name “XYZ”, you can compare if (name==”XYZ”) // Hello ! How are you // or Have a nice day elseif (name==”ABC”) // Nice to meet you etc. Can anyone help me with this ? It should be in c++
Answers
Answered by
0
Answer:
loops = int(input("Amount of loops: "))
inputs = []
for x in range(loops):
inputs.append(input("Input
Similar questions