Help Needed
-
Hi, I have 2 questions here. Need your help . Thanking in advance. Question1 Write an application that prints the following diamond shape. You may use output statements that prints a single asterisks ( * ) , a single space or a single newline character . Maximize your use of repetition (with nested For structures) and minimize the number of output statements . The desired output should be as below : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Question2 Modify the program you wrote in Question 1 to read odd number in the range 1 to 19 to specify the number of rows in the diamond . Your program should then display a diamond of the appropriate size . regards :eek: :laugh:
-
Hi, I have 2 questions here. Need your help . Thanking in advance. Question1 Write an application that prints the following diamond shape. You may use output statements that prints a single asterisks ( * ) , a single space or a single newline character . Maximize your use of repetition (with nested For structures) and minimize the number of output statements . The desired output should be as below : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Question2 Modify the program you wrote in Question 1 to read odd number in the range 1 to 19 to specify the number of rows in the diamond . Your program should then display a diamond of the appropriate size . regards :eek: :laugh:
Did your teacher tell you that you can also do it in Managed C++??? Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.