(a) Write a program that uses for loops to prints the following patterns separately, one below the other. All asterisks (*) should be printed by a single statement of the form cout <*?;(b) Combine your programs and print all four patterns side by side by making clever use of nested for loops. (Hint: The last two patterns require that each line begin with an appropriate number of blanks);I have attached a screenshot of how the end product should look like.;Also note that I have placed the due date saturday ONLY because it did not let me choose Friday. However I need this assignment done by 11:30 am Friday;GMT -5. The earlier the better obviously.
Paper#70318 | Written in 18-Jul-2015Price : $107