int sum = 0, n;
do {cin>>n; sum+=n;}while (n!=0);
cout<<sum;
Answer:
Explanation:
Denote the five numbers as a, b, c, d and e.
The average is:
(a + b + c + d +e) ÷ 5.
Easily:
Learn how to do input and output operations in your programming language of choice.
Learn what average is (see Arithmetic mean - Wikipedia)
Learn how to code arithmetic operations in your PL of choice.
Put all that together and code the program.
Oh, did you expect the code snippet? Sorry, I don’t do peoples’ homework for them on principle. Homework is for you to learn something. If you can’t be bothered, accept that you’ll fail your class. If you want to pass, LEARN.
Answer:
Slide transition
Explanation:
See open chapter 4 page 49 and you will get it