Question: Vrite a console C# program to do the following: 1. Ask user max number of characters. This should be an odd number if user enters

 Vrite a console C\# program to do the following: 1. Ask

Vrite a console C\# program to do the following: 1. Ask user max number of characters. This should be an odd number if user enters even number add 1 to it to convert it to odd number. 2. Ask user characterl (C1) and character2 (C2) to print 3. Your program should then output two triangles ( (1st one is inverted) of base equal to number entered in #1 and made of characters in \#2. The characters printed should alternate between Cl and C2 4. Number of characters in one line of the triangle should differ by 2 from its next line such that the top of the triangle has only 1 character. 5. The top of the triangle (single character) should be centralized appropriately Example: If user enters 9 for \#1 and enters the '*' for Cl and '\#' for C2 (input for \#2) the program should print the following: HWH\#\#\#\#\#\#\#\# HAHHH \#H\#

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!