Question about Computers & Internet

1 Answer

C programme i want to know the source code for finding the pascal triangle through c programming

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 30 Answers

Here is the source code-
main()
{
int n,i,j,k;
printfI("Enter a number to form the triangle");
scanf("%d",&n);
printf("\n\t\t\t");
for(i=1;i<=n;i++)
printf(" ");
for(k=1;k<=i;k++)
printf("%ld",k);
for(k=i-1;k>0;k--)
printf("%ld",k);
printf("\n\t\t\t");
}
}

Posted on Aug 26, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to Run Turbo Pascal Full Screen mode on Windows 7


Now that's a program I've not worked with in a while ;-) I haven't used it since my early high school days in the 1990s. Turbo is a really old application that has been around for ages- unfortunately, being as such, it is only capable of developing 16-bit DOS applications, which has, for better or worse, gone the way of the dinosaur. In the x64-bit versions of Windows Vista and 7, all 16-bit native support has actually gone out the window in favor of 32-bit and 64-bit application development. This is why DosBox was invented- it is a true 16-bit DOS environment (much like command.com and CMD.exe used to be) that is capable of running all the older DOS programs that are no longer compatible with Windows.
When you run Turbo from the DOSbox program, press ALT-ENTER and it will fullscreen whatever you're working with.
Hope this helps,
- Vern

Mar 24, 2012 | Computers & Internet

1 Answer

Im a freshmen on a programming course and my assignment is this,my professor wants us to do a program out of this sample input input your name cheryl input birth month july input your birth date...


You will create a program that asks your Name, then your birth month and birth date, you need to store them into the programs memory.

You will have to also store into the program the months / dates for each sign, and then have the program look up the according sign for that date and print it out.

Very very simple. Everything needed to programm the program you should already know? visit your notes / other material from the course and it should be fairly easy for you, unless you have slept all the classes?

Jul 13, 2011 | Computers & Internet

1 Answer

NCr + nCr-1 = n+1Cr prove it?


The identity (n+1)Cr=nCr+nC(r-1), valid if n>=1 and 1=0. These facts embody the construction of Pascal's triangle and let you prove by induction (on n) that nCr is always an integer since it's either 1 or it's the sum of two integers.

You can also think of the combinatorial definition of nCr, the number of r-subsets of an n-set. This is definitely an integer. Of course then you'd have to prove that the factorial expression for nCr is correct...


The nCr are binomial coefficients with the property that n+1Cr = nCr-1 + nCr (think of Pascal's Triangle) with nCn = 1 = nC0. Since 0C0 = 1 it follows that all nCr are integers

Dec 06, 2010 | Dell Computers & Internet

1 Answer

Hi i want to ask some question. what are the programs can be write in the turbo pascal, can you give me example of a program? because i need it in the school if you can help me..can u plz send me a program...


You will never learn to program by plagiarism of someone else work... we all put in the hard yards, please you do the same OK.... DO NOT take the easy way out. You will just end up being sorry.

Mar 19, 2010 | Borland Turbo Pascal 7.0 for DOS for PC

1 Answer

C queries


Syntactically, Pascal is much more Algol-like than C. English keywords are retained where C uses punctuation symbols — Pascal has and, or, and mod where C uses &&, ||, and % for example. However, C is actually more Algol-like than Pascal regarding (simple) declarations, retaining the type-name variable-name syntax which Pascal abandoned to allow for (easily read) complex type expressions and a better perceived clarity in educational situations.

for further reference look into the following website
http://www.mactech.com/articles/mactech/Vol.09/09.12/PascalUnderstandsC/

Sep 29, 2008 | Computers & Internet

2 Answers

Create desktop icon


Check: http://www.altiris.com/upload/wise901.htm

Basically you need to create a link to your program.

The link should be created into the following directory:

(System Drive):\Documents and Settings\All Users\Desktop

You can do this in any language, C, VBasic, Pascal, even a DOS batch file.

1) Retrieve the installation path of your program + the name
of the executable.

2) Call the windows API to create a shortcut.

3) Here is a link to a solution in Delphi Pascal, which is my
favorite development tool:

http://www.delphifaq.com/faq/delphi/windows_file_system/
f410.shtml

4) Once you get the Delphi program to program to work,
you can simply call it from Wise, at the end of the
installation ...

or

you can call Wise from the Delphi program before creating
the link.

Hope this gets you started, unfortunately it is a little technical.

Martin.
Please rate my answers.

Jun 07, 2008 | Wise Solutions Wise Installation System 9...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

104 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18384 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...