public static void Main()
Console.WriteLine("Ürünün Fiyatı Sadece :) " + new BigInteger(21765).ConvertMoneyToTextLiraBigInteger());
public static class Extensions
public static string ConvertMoneyToTextLiraBigInteger(this BigInteger sayiyla)
string[] ones = { "", "BİR", "İKİ", "ÜÇ", "DÖRT", "BEŞ", "ALTI", "YEDİ", "SEKİZ", "DOKUZ" };
string[] tens = { "", "ON", "YİRMİ", "OTUZ", "KIRK", "ELLİ", "ALTMIŞ", "YETMİŞ", "SEKSEN", "DOKSAN" };
string[] thousands = { "", "BİN", "MİLYON", "MİLYAR", "TRİLYON", "KATRİLYON" };
int[] BasamaklaraBol(BigInteger sayi, int hane)
int[] arr = new int[hane];
for (int i = 0; i < hane; i++)
arr[i] = (int)(sayi % 10);
int[] basamaklar = BasamaklaraBol(sayiyla / 100, 18);
for (int i = 0; i < 18; i += 3)
int yuz = basamaklar[i + 2];
groupValue += ones[yuz] + "YÜZ";
groupValue += tens[basamaklar[i + 1]];
groupValue += ones[basamaklar[i]];
groupValue += "" + thousands[i / 3];
if (groupValue == "BİRBİN")
yaziyla = groupValue + yaziyla;
int kurus = (int)(sayiyla % 10);
int onkurus = (int)(sayiyla / 10 % 10);
if (onkurus > 0 || kurus > 0)
yaziyla += " " + tens[onkurus] + ones[kurus] + " KURUŞ";
return "YALNIZ " + yaziyla;