write a program that prompts the user to enter three different positive integer values.If the values are not different, the program prints a message"equal value" and terminates(hint:use the return statement).If eithere of the value is negative, the program prints "negative input" and terminates.Otherwise it prints the value the user entered.
After that,the program compares he first integer and the second integer and prints either, "the first integer is larger than the second" or the second integer is larger than the first".Then it compares the second integer and the third integer and prints either"the second integer is larger tan the third" or the third integer is larger than the second.
On seperate lines the program should print the minimum value the maximum value, total of the input values, their average an their product.Make sure you know what happens when input data exceed the legal range for integers.Make sure that these results are correct even when the input value is close to the legal limits for integers.(hint:convert input values to the value of type double).
For example, if the the user entered 1000000, 2000000, 3000000, the dialog looks this way:
please enter three different posible integer values: 1000000, 2000000, 3000000.
The second integer is lager than the first.
The third integer is larger than the second.
The minimum value is 1000000
The maximum value is 3000000
The average value is 2e+006
The product is 6e+018
Define variable that contains the result of comptations as clos to their use as possible ,not at the start of main().Test the program so that each statement of the was executed at least once.