Question: Write a program that reads 20 characters from the user, your program should concatenate each 10 character into a different string. However, if the user
Write a program that reads 20 characters from the user, your program should concatenate each 10 character into a different string. However, if the user entered ‘M’, ‘A’, or ‘K’, your program should skip these and not concatenate them. use if statement and for loop
Step by Step Solution
There are 3 Steps involved in it
Initialize empty strings string1 string2 Read 20 characters from the user userinput inputEnter 2... View full answer
Get step-by-step solutions from verified subject matter experts
