Calculate average using nested loop

I am a newbie in C++ programming language.I have no idea for this question.Can anyone teach me or give me some idea about this question.Thanks.This is the question.
Write a program that will calculate the average of several consecutive lists of numbers using nested loop.Your program should read in a value,an integer quantity indicate the number of lists that will be average.Then repeatedly read in a list of numbers and determine its average.For example:

How many list?3
List number ->1
How many numbers are in list 1?4
X=1.5
X=2.5
X=6.2
X=3.0

The average for list 1 is 3.30

List number ->2
How many numbers are in list 2?3
X=4.5
X=-2.8
X=7.7

The average for list 2 is 3.13333

List number ->3
How many numbers are in list 3?5
X=-10.7
X=8.7
X=3.6
X=-20.8
X=3.5

The average for list 3 is -3.14
Show us what you've done so far and where you are having troubles.
Topic archived. No new replies allowed.