Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
496 B
10
Indexable
Never
  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