Question: c++ Write a program that outputs hello to the user as many times as specified. So ask the user how many times to repeat the
c++
Write a program that outputs hello to the user as many times as specified. So ask the user how many times to repeat the greeting, then use a loop to output it that many times. For an extra challenge, alternate between capital and lower-case words, such as:
How many times should I say hello? 6 hello HELLO hello HELLO hello HELLO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
