Untitled

 avatar
unknown
plain_text
a year ago
496 B
11
Indexable
  static void Main(string[] args)
        {
            int toplam = 0;
            while (true)
            {
                int sayiGir= Convert.ToInt32(Console.ReadLine());
                if(sayiGir <0)
                {
                    break;
                }
                else
                {
                    toplam += sayiGir;
                }

            }

            Console.WriteLine( toplam.ToString() );
            Console.ReadKey();

        }
Leave a Comment