تبلیغات
برنامه نویسی به زبان ++c - برنامه نوشتن عدد به فارسی
 
برنامه نویسی به زبان ++c
درباره وبلاگ



مدیر وبلاگ : برنامه نویس
نویسندگان
نظرسنجی
شما از کدام سیستم عامل استفاده می کنید؟








آمار وبلاگ
  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :
برنامه ای که عدد سه رقمی رابه ریاضی دریافت می کند و آن رابه فارسی چاپ می کند که به درخواست یکی از دوستان نوشته شده است.
برنامه در ادامه مطلب.....





#include <stdio.h>
#include <conio.h>
int main()
{
    int x,a,b,c;
    printf("Enter a number with 3 digits");
    scanf("%d",&x);
    a=x/100;
    x=x-(a*100);
    b=x/10;
    c=x-(b*10);
    switch (a) {
        case 1:
            printf("sad o\n");
            break;
        case 2:
            printf("divisto o\n");
            break;
        case 3:
            printf("cesad o\n");
            break;
        case 4:
            printf("chaharsad o\n");
            break;
        case 5:
            printf("ponsad o\n");
            break;
        case 6:
            printf("sheshsad o\n");
            break;
        case 7:
            printf("haftsad o\n");
            break;
        case 8:
            printf("hashtsad o\n");
            break;
        case 9:
            printf("nohsad o\n");
            break;
    }
    switch (b) {
        case 2:
            printf("bist o\n");
            break;
        case 3:
            printf("ce o\n");
            break;
        case 4:
            printf("chehel o\n");
            break;
        case 5:
            printf("panjah o\n");
            break;
        case 6:
            printf("shast o\n");
            break;
        case 7:
            printf("haftad o\n");
            break;
        case 8:
            printf("hashtad o\n");
            break;
        case 9:
            printf("navad o\n");
            break;
    }
    if(b!=1)
    {
        switch (c) {
            case 1:
                printf("yek \n");
                break;
            case 2:
                printf("do \n");
                break;
            case 3:
                printf("se \n");
                break;
            case 4:
                printf("chahar \n");
                break;
            case 5:
                printf("panj \n");
                break;
            case 6:
                printf("shesh \n");
                break;
            case 7:
                printf("haft \n");
                break;
            case 8:
                printf("hasht\n");
                break;
            case 9:
                printf("noh \n");
                break;
        }
    }
    if(b==1)
    {
        switch (c) {
            case 1:
                printf("yazdah \n");
                break;
            case 2:
                printf("davazdah \n");
                break;
            case 3:
                printf("cezdah \n");
                break;
            case 4:
                printf("chahardah \n");
                break;
            case 5:
                printf("panzdah \n");
                break;
            case 6:
                printf("shanzdah \n");
                break;
            case 7:
                printf("hefdah \n");
                break;
            case 8:
                printf("hejdah\n");
                break;
            case 9:
                printf("nozdah\n");
                break;
        }
    }
    getch();
    return 0;
}




نوع مطلب : برنامه نویسی، 
برچسب ها : برنامه نویسی،
لینک های مرتبط :

       نظرات
دوشنبه 16 اردیبهشت 1392
برنامه نویس
دوشنبه 7 مرداد 1398 02:27 ق.ظ

With thanks! I appreciate this!
online pharmacy prescriptions from canada without online pharmacies of canada canadian pharmacies stendra pharmacy canada 24 canada vagra canada online pharmacies reviews canadian pharcharmy online drugstore online reviews online pharmacies tech school
شنبه 1 تیر 1398 11:20 ب.ظ

You actually suggested that perfectly.
purchase once a day cialis cialis baratos compran uk cialis without a doctor's prescription when will generic cialis be available cialis prezzo in linea basso cialis 100 mg 30 tablet generic cialis pill online we like it safe cheap cialis cialis without a doctor's prescription online prescriptions cialis
جمعه 31 خرداد 1398 02:34 ب.ظ

Thank you! Helpful stuff.
5 mg cialis coupon printable price cialis per pill how do cialis pills work cialis coupon we recommend cheapest cialis cialis 30 day trial coupon cialis cuantos mg hay 5 mg cialis coupon printable cialis rckenschmerzen generic cialis with dapoxetine
پنجشنبه 30 خرداد 1398 10:05 ب.ظ

Thanks. Great information.
cialis pills in singapore cialis soft tabs for sale effetti del cialis cuanto cuesta cialis yaho cialis y deporte cialis generic availability cialis free trial click here to buy cialis cialis generic availability recommended site cialis kanada
پنجشنبه 30 خرداد 1398 03:13 ق.ظ

Seriously plenty of awesome knowledge!
cialis prezzo di mercato cialis name brand cheap click here take cialis best generic drugs cialis cialis lilly tadalafi cialis pills price each online cialis where to buy cialis in ontario buy name brand cialis on line fast cialis online
چهارشنبه 29 خرداد 1398 10:59 ق.ظ

You actually explained this wonderfully!
try it no rx cialis tadalafil 5mg india cialis 100mg cost dose size of cialis buy brand cialis cheap cialis kaufen bankberweisung we choice cialis pfizer india cialis daily new zealand weblink price cialis cialis prices in england
شنبه 25 خرداد 1398 12:09 ب.ظ

Nicely put, Thank you!
cialis generisches kanada cialis name brand cheap buy cialis online legal deutschland cialis online cialis savings card free cialis cialis patentablauf in deutschland tadalafil 10 mg how do cialis pills work cialis para que sirve
چهارشنبه 22 خرداد 1398 01:58 ب.ظ

Thank you. I enjoy it.
cialis 5 effetti collaterali low dose cialis blood pressure cialis online napol how to buy cialis online usa only here cialis pills cialis vs viagra wow cialis 20 cialis uk chinese cialis 50 mg cialis daily reviews
دوشنبه 20 خرداد 1398 05:49 ق.ظ

You said it nicely..
cialis rezeptfrei sterreich cialis free trial generic cialis cialis online nederland cialis taglich cialis uk try it no rx cialis no prescription cialis cheap calis cialis 5 mg funziona
جمعه 17 خرداد 1398 05:58 ب.ظ

You actually stated this effectively.
tadalafil acquistare cialis internet cialis 20 mg rx cialis para comprar cialis generico en mexico buying cialis overnight tadalafil when will generic cialis be available buy cialis cialis pills in singapore
دوشنبه 16 اردیبهشت 1398 04:33 ب.ظ
Компания "Промтеплострой" предоставляет на рынок в пределах России и СНГ большой выбор пром.
оборудования, в том числе
широкий выбор редукторов различного
назначения. Для изготовления и сборки используются только качественные и надёжные материалы.
Специалисты помогут правильно подобрать и купить с доставкой подходящий редуктор по выгодной цене.

редуктор ц2у характеристики (Sandra)
редуктор ц2у характеристики
دوشنبه 16 اردیبهشت 1398 12:33 ب.ظ
Компания "Промтеплострой" предоставляет на
рынок в пределах России и СНГ большой выбор пром.
оборудования, в том числе широкий выбор редукторов различного назначения.
Для изготовления и сборки используются только качественные
и надёжные материалы. Специалисты
помогут правильно подобрать и купить с доставкой подходящий редуктор
по выгодной цене.
редуктор червячный 2ч редуктор червячный 2ч
(https://www.kontaktor.su)
چهارشنبه 21 فروردین 1398 01:04 ب.ظ

Fine data. Cheers!
drugs for sale canadianpharmacy drugstore online canada pharmaceuticals online trust pharmacy of canada drugstore online buy viagra usa aarp recommended canadian pharmacies canadian government approved pharmacies canadian pharmacies that ship to us
جمعه 2 فروردین 1398 03:13 ب.ظ
We are a group of volunteers and opening a new scheme in our community.
Your site provided us with valuable info to work on. You have done a formidable job and our entire community will be thankful to you.

buy generic cialis online indian cialis online (cialisedshop.com)
پنجشنبه 1 فروردین 1398 11:27 ب.ظ
Excellent post. I was checking constantly this blog and
I am inspired! Very useful information specially the
ultimate section :) I handle such information much.

I used to be looking for this particular information for a very lengthy time.
Thanks and best of luck.
viagra without a doctor prescription viagra Without a doctor prescription
یکشنبه 12 اسفند 1397 10:29 ب.ظ
Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe
for a blog site? The account helped me a acceptable deal.
I had been a little bit acquainted of this your broadcast provided bright clear concept
یکشنبه 12 اسفند 1397 10:26 ب.ظ
Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe
for a blog site? The account helped me a acceptable deal.
I had been a little bit acquainted of this your broadcast provided bright clear concept
چهارشنبه 8 اسفند 1397 05:49 ق.ظ
you're actually a just right webmaster. The web site loading speed is incredible.

It kind of feels that you are doing any unique trick.
Furthermore, The contents are masterwork. you've performed a great job in this
subject!
جمعه 16 آذر 1397 12:03 ق.ظ

You actually expressed that terrifically.
we like it cialis price cialis 5mg prix canadian cialis cialis kaufen bankberweisung i recommend cialis generico tadalafilo cialis generico lilly cialis rezeptfrei sterreich cialis per paypa cialis daily reviews
پنجشنبه 15 آذر 1397 04:34 ق.ظ

Awesome info. Cheers.
wow cialis 20 free generic cialis cialis generico generic cialis soft gels cialis 5 mg para diabeticos cost of cialis per pill cialis generic brand cialis nl how to purchase cialis on line buy cialis sample pack
سه شنبه 13 آذر 1397 11:28 ب.ظ

You expressed this really well!
non 5 mg cialis generici precios de cialis generico tesco price cialis cialis 5mg prix cialis italia gratis i recommend cialis generico cialis 20 mg effectiveness cialis per paypa generic cialis review uk achat cialis en suisse
سه شنبه 13 آذر 1397 12:58 ق.ظ

Truly tons of excellent knowledge.
cialis daily new zealand venta cialis en espaa cialis prezzo in linea basso online cialis we choice free trial of cialis cialis super kamagra order generic cialis online cialis 10 doctissimo acheter du cialis a geneve free cialis
شنبه 10 آذر 1397 11:18 ق.ظ

Kudos! I like it!
cialis en 24 hora cialis kaufen bankberweisung warnings for cialis price cialis per pill cialis rezeptfrei cialis from canada cialis flussig cialis prices in england cipla cialis online viagra vs cialis
شنبه 10 آذر 1397 12:03 ق.ظ

Very good forum posts. Regards!
acquisto online cialis cialis for sale south africa cialis savings card comprar cialis 10 espa241a effetti del cialis cialis generique cialis 5 mg effetti collateral cialis great britain cialis kaufen bankberweisung canadian drugs generic cialis
جمعه 9 آذر 1397 12:30 ب.ظ

You actually revealed this adequately.
precios de cialis generico tadalafil tablets comprar cialis navarr click here take cialis cialis uk next day buy cialis prezzo cialis a buon mercato if a woman takes a mans cialis pastillas cialis y alcoho cialis e hiv
پنجشنبه 8 آذر 1397 01:15 ق.ظ

You actually stated it effectively!
cialis uk next day cialis official site price cialis wal mart pharmacy tadalafil 20 mg cialis 5 mg schweiz cialis efficacit acquisto online cialis generic cialis at the pharmacy we choice cialis pfizer india cost of cialis per pill
چهارشنبه 7 آذر 1397 12:52 ب.ظ

You suggested that well.
how do cialis pills work cialis for sale in europa cialis usa cost buy cheap cialis in uk cialis lilly tadalafi wow look it cialis mexico cialis en mexico precio cialis rezeptfrei sterreich the best site cialis tablets interactions for cialis
چهارشنبه 7 آذر 1397 12:50 ق.ظ

Regards. I like this!
safe dosage for cialis cialis without a doctor's prescription get cheap cialis tadalafil 10 mg we use it 50 mg cialis dose cialis daily il cialis quanto costa order cialis from india ou acheter du cialis pas cher cialis uk
پنجشنبه 19 مهر 1397 02:09 ق.ظ

Terrific tips. Thanks.
buy generic levitra buy levitra levitra generic generic levitra buy levitra generic levitra 20 mg buy 10 mg levitra buy levitra levitra online levitra
سه شنبه 10 مهر 1397 01:52 ق.ظ

Kudos, Plenty of write ups.

cialis y deporte recommended site cialis kanada cialis prezzo al pubblico viagra vs cialis cialis taglich walgreens price for cialis viagra cialis levitra female cialis no prescription cialis online cost of cialis cvs
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


نمایش نظرات 1 تا 30