Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Write the necessary statements (not a complete program) to prompt the user for a number and then print the "hour glass figure" as illustrated in the...
Write the necessary statements (not a complete program) to
prompt
the user for a number and then print the “hour glass figure” as illustrated in the two sample outputs below.
Your code should work for odd and even numbers. Assume the user
enters a number > 2.
Following are two sample outputs to illustrate the cases when a user enters an even and an odd number. There is a space between each star.
Enter a number ? 5
* * * * *
* * *
*
* * *
* * * * *
Enter a number ? 6
* * * * * *
* * * *
* *
* * * *
* * * * * *