Question: Read 5 positive random integer numbers from keyboard in the range of 1 - 1 0 0 0 . Find the sum of first two
Read positive random integer numbers from keyboard in the range of Find the sum
of first two numbers, last two numbers and compare their average with the middle
numberrd numberIf they are same print on to the screen, Find the sum of first and last
number, sum of second n and fourth number and compare average of them with second
number. If they are same print on the screen. Find the sum of first and fouth number,
sum of second and last number then compare their average with fourth number, if they are
equal print on the screen. And if above constraints are not satisfied print an ERROR
report on the screen.
Hint: Use exception handling mechanism
Sample Input and Output:
Input: Output:
Input: Output:
Input: Output:
Input: Output: No constraint is satisfied in c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
