Question: Write a program that reads a sequence of integer numbers from the input and determine if there are two numbers in the sequence such that

Write a program that reads a sequence of integer numbers from the input and determine if there are two numbers in the sequence such that their sum is equal to 1000. If the sequence contains the numbers the program must print Yes', if it doesn't, it must print 'No. Sample Input Sample Output 123 456 789 1 10 20 500 999 Yes Write a program that reads a sequence of integer numbers from the input and determine if there are two numbers in the sequence such that their sum is equal to 1000. If the sequence contains the numbers the program must print Yes', if it doesn't, it must print 'No. Sample Input Sample Output 123 456 789 1 10 20 500 999 Yes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
