Question: * This is for CS 101 Java class. I can only use for and do-while loops for this lab assignment. I cannot use while or

* This is for CS 101 Java class. I can only use "for" and do-while loops for this lab assignment. I cannot use while" or any other repetition method. *

* This is for CS 101 Java class. I can only use

Create a new project Lab05a. Write a program that asks the user for an integer N and a character and prints a shape on the screen using the given character and N. In each line, it should print the given character, from starting line 1 to N, and it should increase, i.e lineN should have N characters printed, and then it should start to decrease one by one as it goes below Sample run: Enter an integer: 3 Enter a character: * Sample run: Enter an integer 4 Enter a character: A

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!