Question: a. Write a c++ program ( using while or do or for loops) to print the hollow diamond of stars (*), ask the user to
a. Write a c++ program( using while or do or for loops) to print the hollow diamond of stars (*), ask the user to enter an odd number as the height. For example, if user enters height as 7, output will look like:

B. Write a c++ program to print all the prime numbers from 1 to 100. (Using while or for or do loops)
Y*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
