Question about Operating Systems

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 | Operating Systems

1 Answer

How to start pascal programming?


http://pascal-programming.info/lesson1.php

Jun 23, 2011 | Operating Systems

3 Answers

I have donloaded Winzip32. But after I have installed to my PC it asks me WINZIP Registration/activation code. So, I need some tentative solution from you. Yayne


With WinZip you can use the free trial, I have for years. The only other way to get a registration code is if you purchase the full program.

Feb 16, 2011 | Operating Systems

1 Answer

What is machine level language


Hi, Machine languages are the only language that are understood by the computers.While easily understood by the computers machine languages are almost impossible for humans to use because they consist entirely numbers.Machine level languages are in binary codes 1, 0 which only computers can understand normally.

Advantage

The only advantage is that program of machine language run very fast because no translation program is required for the CPU.

Disadvantages


  1. It is very difficult to program in machine language. The programmer has to know details of hardware to write program.
  2. The programmer has to remember a lot of codes to write a program which results in program errors.
  3. It is difficult to debug the program.
camulus_0.jpg

Dec 31, 2010 | Operating Systems

1 Answer

I want to make a minor project in core java.....suggest me some new and different projet.....


Program 1
//Find Maximum of 2 nos.

Program 2
//Find Minimum of 2 nos. using conditional operator

/*Write a program to generate 5 Random nos. between 1 to 100, and it
should not follow with decimal point.

* Write a program to generate Harmonic Series.

Display Triangle as follow : BREAK DEMO.

and you can find projects from below link

http://www.freejavaguide.com/javasource3.htm

thanks

May 18, 2010 | Microsoft Windows XP Professional

1 Answer

Source code for DES algorithm in c++


O.K. but next time do yourself a favor: GOOGLE it. You'll find this reference on the first page:
https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8098&lngWId=3

Enjoy!

Dec 29, 2008 | Operating Systems

1 Answer

File handling


Use copy,  (or cp in linux),  it's a C program,  if you want you can find the source code if you are resourceful.  see below.  If you want a c++ program source code, take the source you found and do "rename copy.c copy.cpp" ;~).  It is silly to use an OO language to do a trivial utility.
see usage below:

C:\Users\ajm>ver > file1
C:\Users\ajm>ver > file2

C:\Users\ajm>copy file1+file2 file3 file1 file2         1 file(s) copied.
C:\Users\ajm> C:\Users\ajm>dir file*  Volume in drive C is SQ004740V04  Volume Serial Number is 72CF-0846
 Directory of C:\Users\ajm
11/06/2008  09:51 AM                40 file1 11/06/2008  09:51 AM                40 file2 11/06/2008  09:51 AM                81 file3                3 File(s)            161 bytes                0 Dir(s)  79,747,624,960 bytes free

Oct 30, 2008 | Operating Systems

1 Answer

Mergesort


Hi Blaze
Mac is not open source. But it does have a couple of areas that you can find code and write your own,

Script editor is a good place to start and Automator. They both give you sample code you can work with.

Paul


Sep 07, 2008 | Operating Systems

1 Answer

I can't open files


whatever you are downloading and trying to open is something that you have not got the software associated with it to open it and either you have chose notepad to open up the file or windows as selected it as default as it cannot find a programme that you have installed to open it. If you know that you have an associated programme, right click on the file select open with and then browse for the required programe.

Sep 13, 2007 | Microsoft Windows XP Professional for PC

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

103 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

vimal
vimal

Level 3 Expert

340 Answers

Justin
Justin

Level 3 Expert

2072 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...