Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by csharporneksinav ( 13 years ago )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double[] siparis = new double[9999];
double toplam = 0, urun = 0, kdv = 0;
for (int i = 1; i <= 9999; i++)
{
Console.Write(i + ". siparişi giriniz: ");
siparis[i] = Convert.ToDouble(Console.ReadLine());
Console.Write("Devam etmek istiyor musunuz (E/H): ");
string soru = Console.ReadLine().ToLower();
if (soru == "h")
{
break;
}
}
for (int i = 1; i <= 9999; i++)
{
if (siparis[i] != null)
{
urun++;
toplam += siparis[i];
}
}
kdv = (toplam * 18) / 100;
toplam += kdv;
if (toplam < 100)
{
toplam += urun * 9;
}
Console.WriteLine("Toplam tutar: "+toplam);
while (true) ;
}
}
}
Revise this Paste
Children: 68304