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:

a. Write a c++ program( using while or do or for loops)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!