تبلیغات
دانلود سورس پروژه های مختلف برنامه نویسی، آموزش برنامه نویسی - سورس مثلث خیام پاسکال
دانلود سورس پروژه های مختلف برنامه نویسی، آموزش برنامه نویسی
دانلود رایگان سورس پروژه
سایت برنامه نویسی تک کدر takcoder.ir


آموزش برنامه نویسی با استفاده از نوین ترین روش و ارائه پروژه های نمونه و مجموعه عظیم سورس کدهای آماده برای شما دوستان

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






میدونید که مثلث خیام پاسکال یکی از نمونه مسئله هایی است  که یک دانشجو باید بتواند حل کند، میتوانید با استفاده از کد زیر و درک برنامه، برای خود یک برنامه دیگه بنویسید.
نحوه ی تولید مثلث خیام پاسکال
#include <iostream.h>
#include <conio.h>
#include <iomanip.h>
int c(int i,int j)
{
    int k;
    if ((i==j)||(j==1))
        k=1;
    else
        k=c(i-1,j-1)+c(i-1,j);
    return k;
}
int main ()
{
    int k=26;
    for (int i=1; i<13 ;i++)
    {
        cout << "\n";
        cout << setw(k);
        for (int j=1; j<=i;j++)
            cout << c(i,j)<< setw(4);
        k=k-2;
    }
cout<<"\n\n";
    getch();
    return 0;
}





نوع مطلب : پروژه های رایگان، سی| سی پلاس پلاس، آموزش، پروژه های تکمیل شده، 
برچسب ها : الگوریتم خیام، سورس خیام، سورس پاسکال، الگوریتم پاسکال، الگوریتم خیام پاسکال، سورس خیام پاسکال، pascal،
لینک های مرتبط :
Yahya Taherzadeh
جمعه 22 آذر 1392
سه شنبه 17 مرداد 1396 03:49 ق.ظ
Hmm it appears like your website ate my first comment (it was extremely long) so I guess I'll just
sum it up what I had written and say, I'm thoroughly enjoying your blog.
I too am an aspiring blog blogger but I'm still new to everything.
Do you have any recommendations for rookie blog writers? I'd certainly appreciate it.
دوشنبه 16 مرداد 1396 08:41 ب.ظ
Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn't show up.
Grrrr... well I'm not writing all that over again. Regardless, just wanted to say wonderful blog!
دوشنبه 16 مرداد 1396 07:37 ق.ظ
This is very fascinating, You're an excessively professional blogger.

I have joined your feed and look ahead to looking for
more of your magnificent post. Also, I've shared your website
in my social networks
جمعه 6 مرداد 1396 10:34 ب.ظ
Hurrah, that's what I was exploring for, what a data!
present here at this weblog, thanks admin of this site.
جمعه 6 مرداد 1396 06:51 ب.ظ
I love looking through an article that will make people think.
Also, thanks for allowing for me to comment!
یکشنبه 11 تیر 1396 09:06 ق.ظ
These are genuinely impressive ideas in regarding blogging.

You have touched some good things here. Any way keep up wrinting.
شنبه 3 تیر 1396 04:38 ب.ظ
Glad to be one of the visitors on this amazing website :D.
چهارشنبه 31 خرداد 1396 06:11 ب.ظ
We are a group of volunteers and starting a brand new scheme in our community.
Your web site offered us with helpful information to
work on. You've done an impressive task and our whole community will
likely be thankful to you.
دوشنبه 1 خرداد 1396 07:22 ب.ظ
Hey! Would you mind if I share your blog with my zynga group?
There's a lot of people that I think would really
appreciate your content. Please let me know.
Thank you
یکشنبه 31 اردیبهشت 1396 10:13 ب.ظ
This is the right website for anyone who wants to understand
this topic. You realize a whole lot its almost tough to argue
with you (not that I really will need to?HaHa).

You certainly put a fresh spin on a topic which
has been discussed for many years. Excellent stuff, just excellent!
شنبه 30 اردیبهشت 1396 08:43 ق.ظ
Fantastic web site. Lots of helpful info here.
I am sending it to some pals ans also sharing in delicious.
And naturally, thank you for your sweat!
جمعه 29 اردیبهشت 1396 01:39 ق.ظ
Hi there, i read your blog occasionally and i own a similar one
and i was just curious if you get a lot of spam remarks?
If so how do you reduce it, any plugin or anything you can advise?
I get so much lately it's driving me insane so any support is very much appreciated.
چهارشنبه 13 اردیبهشت 1396 01:46 ب.ظ
I always used to read piece of writing in news papers but now
as I am a user of internet thus from now I am using net for content, thanks to web.
پنجشنبه 31 فروردین 1396 02:05 ب.ظ
Thanks very nice blog!
جمعه 25 فروردین 1396 07:50 ب.ظ
Article writing is also a excitement, if you know then you can write if not
it is difficult to write.
جمعه 18 فروردین 1396 05:09 ب.ظ
Inspiring story there. What occurred after? Good luck!
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر




صفحات جانبی
آمار وبلاگ
تاییدیه پرداخت
تبلیغات
به سایت تک کدر خوش آمدید