4 define 4 int variables y1 y2 y3 y4 input 4 integer numbers form cons
Search for question
Question
4. Define 4 int variables y1, y2, y3, y4. Input 4 integer numbers form console to initialize these 4 variables. Calculate the average of the numbers in these variables and
display message: "The average of numbers num1, num2, num3, num4 is the-average-number". The num1, num2, num3, num4 and the-average-number should be replaced by real numbers.