Write a program in C++ that asks the user to input 2 lists of numbers, 5 numbers per list. Your program should identify the common numbers in the lists or the numbers that are present in both lists. See sample lists and output below. Input: List 1: 20 3 59 1 3 List 1: 3 5 86 31 23 List 1: 53 43 76 123 645 List 2: 1 20 1 4 3 List 2: 21 54 87 13 7 List 2: 435 445 6 12 76 Output: 20 3 1 Output: None Output: 76

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section13.4: Linked Lists
Problem 2E
icon
Related questions
Question

Write a program in C++ that asks the user to input 2 lists of numbers, 5 numbers per list. Your program should
identify the common numbers in the lists or the numbers that are present in both lists. See sample lists and
output below.
Input:
List 1: 20 3 59 1 3 List 1: 3 5 86 31 23 List 1: 53 43 76 123 645
List 2: 1 20 1 4 3 List 2: 21 54 87 13 7 List 2: 435 445 6 12 76
Output: 20 3 1 Output: None Output: 76

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr