2. Feladat: Végtelenig Stingből
using
System;using
System.Collections.Generic;using
System.Linq;using
System.Text;using
System.Threading.Tasks;namespace
ConsoleApplication1{
class Program{
static void Main(string[] args){
List<double> szamok = new List<double>(); int i = 0; while (true){
Console.Write("Kerem a {0}. szamot:", i + 1); string s = Console.ReadLine(); if (s == "*" || s == "vege") break; double d = double.Parse(s.Replace('.', ',')); szamok.Add(d); i++;}
}
}
}