Write a program that will read user input, and do the following: 1. The user can input...

80.2K

Verified Solution

Question

Programming

Write a program that will read user input, and do thefollowing:
1. The user can input letters [A-Z] as much as he wants (ignorecase).
2. If the user input other than letters or two characters, stop theinput process and start to print
unduplicated sorted pairs such as the below examples:
User input: A a e b d d D E a B 1
Output: AB AD AE BD BE DE
User Input: a q w e dd
Output: AE AQ AW EQ EW QW

Answer & Explanation Solved by verified expert
4.1 Ratings (718 Votes)
include using namespace std    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students