1. Engineering
  2. Computer Science
  3. how to use loop like dowhile while and for please...

Question: how to use loop like dowhile while and for please...

Question details

Write a program that asks the user to enter an integer between 1 and 15. If the number entered is outside that range, your program should print out an error message and re-prompt for another number. (This is an opportunity to write an input validation loop Once the user enters a number in the correct range, your program will print out four patterns of asterisks that look like the following. Note that the number provided by the user is equal to the height of the pattern. Let us say that the input value was 5. Then please print the following four patterns:

how to use loop like {do-while, while, and for} please using c++ visual studio 2015. please show me for code output and give to pseudo code for c++ thanks.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution