using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _0
{
class Program
{
static void Main(string[] args)
{
int a=0,tpl=0;
for (;;)
{
Console.Write("Sayı girin: ");
a=Convert.ToInt32(Console.ReadLine());
tpl = tpl + a;
if (a==0)
{
break;
}
}
Console.WriteLine("girdiğin sayıların toplamı: {0}",tpl);
}
}
}
0 Yorumlar