Average of three
Read three whole numbers and print their average. The average can have a decimal part: for 1 2 2 print 1.66667.
Dividing int by int drops the decimal part, so make one side of the division a decimal number, for example by dividing by 3.0, and store the result in a double. std::cout prints a double with up to 6 digits, and leaves out a .0: an average of exactly 2 prints as 2.
Results will be shown here
Press Run to start your program.