finding the order pairs of number whose sum will be same as targetted value Features
User inputs the target sum.
User defines the maximum number in the range.
Prints the first pair of numbers that adds up to the target sum.
Handles cases where no pair exists.
How to Use
Clone or download the repository.
Run the Python script:
python target_sum_finder.py
Enter the target value when prompted.
Enter the maximum value of the range.
The script outputs the first matching pair or informs you if none exists.
Example Enter the target value: 10 Enter the maximum value in range: 8 Found! First number = 2 and Second number = 8
Note
Stops at the first matching pair.
Can be modified to find all pairs.
Best for small to medium ranges.