Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started