Question: Write code that a.Prompts a user to enter two characters. b.Prints the two characters alternating (first one then the other) 40 times. So if the

Write code that

a.Prompts a user to enter two characters.

b.Prints the two characters alternating (first one then the other) 40 times.

So if the user enters * and #, the output is:

*#*#*#*#.....etc. for a total of 80 characters in the line.

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!