using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class While
{
private double sum;
public void Star()
{
WriteProgramInfo();
ReadInPutAndSumNumbers();
ShowResults();
}
private void ReadInPutAndSumNumbers()
{
double num = 0.0;
bool done = false;
while (!done)
{
{
}
}
}
private void WriteProgramInfo()
{
Console.WriteLine("\n\n ++++++ Finnish input type 0 ++++++");
}
private void ShowResults()
{
}
}
}
hi.
I cant figuer out how to do this.
When the program start i can put in as meny numbers that i want in to it until i put in 0 then it will finnish and i can sum up the values but i dont know how im going to do it. i know how to do while loops but not to to like this whit out saying how many times it going to put it out
so can any one explane to my how to do it? its a school work but i dont need to send it in but i need to learn how to do it if im going to do same things like this in the future