Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an array of size 10. Take inputs from the user and populate the array. The inputs will be numerical values ranging from [1-9]. Now,

Create an array of size 10. Take inputs from the user and populate the array. The inputs will be numerical values ranging from [1-9]. Now, you are to find all the pairs of numbers whose sum is equal to 10.

If there are no such pairs then print SORRY! No Such Pairs

Remember that a number can be used to form multiple pairs

Sample Input 01:

1 2 3 4 5 6 7 8 9 1

Sample Output 01:

19

28

37

46

Sample Input 02:

1 2 3 4 5 1 2 3 4 1

Sample Output 02:

SORRY! No Such Pairs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Understand the objective of financial statements

Answered: 1 week ago

Question

Explain the pages in white the expert taxes

Answered: 1 week ago