Using loops, write a C# program that asks the user to enter repeatedly an integer number, it stops when the user enters -1, then the program should display how many numbers were entered, their the sum and their average.

Loops can use the do, for, while constructs and your exit can be done in many ways. Why I note that is, the homework stating "Using loops" gave you no less than three or all loop mechanisms offered by C#. So that can't be what's stopping you here.

Supply your code so far and tell which line or function is stopping you.

commented: Honestly I'm not good with coding and I don't remember C++. I was hoping that someone can make the code for me. +0
commented: Honestly, you are going to be very disappointed then... +16
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.