The ultimate destination for quality online tuitions, assignment and homework help

+1 (718) 3957640
+1 (718) 3957640

Gtalk/MSN/Yahoo! ID: assignment.maker

HwA Blog

C programming at HelpWithAssignment.com

Jan 27 2011

C is a general purpose programming language. C is called a mid-level language because of faster program development like other high-level languages and faster program execution like assembly and machine language. C has a rich set of operators, modern control flow and economy of expressions. C also contains some additional features that allow it to be used at lower level, thus bridging the gap between machine languages and high-level languages. This flexibility allows C to be used for system programming (e.g., for writing operating systems) as well as for applications programming (e.g., for writing a program to solve a complicated system of mathematical equations or for writing a program like customer billing).

Here is an example for Finding LCM and GCD

Finding LCM and GCD

#include

void main()

{

int a[20],n,i,j,c,max,min;

unsigned long prod;

clrscr();

printf(“Enter the no. of entries: “);

scanf(“%d”,&n);

printf(“Enter the entries:”);

for(i=0;i0)

a[i]=c;

else

{

printf(“Invalid Entry”);

return;

}

}

max=a[0];

for(i=0;i=max)

max=a[i];

min=a[0];

for(i=0;i0;i–)

{

if (min%i==0)

{

c=0;

for(j=0;j if(a[j]%i==0)

c+=1;

}

if(c==n)

{

printf(“The GCD of the nos: %d”,i);

break;

}

}

getch();

}

At HelpWithAssignment.com we provide the best C Programming help. Our experts provide the best Online Tutoring, Assignment help and Homework help for College and University students.

For more details you visit our website at http://www.helpwithassignment.com/ and http://www.helpwithassignment.com/programing-assignment-help .

This is in continuation with our previous articles on C Programming.

There are no comments yet, add one below.

Leave a Reply

Your Name: (required)
Your Email(will not be published): (required)
Website: (not required)
Message: (required)

Assignment Request

Name :
Email :
Phone :
Upload H/W File:
Instruction:
Due Date:
Hours:

Free Download

Bookmark and Share
Copyright © 2012 HelpWithAssignment.com. All rights reserved.
Assignment Help, Accounting Assignment Help, Statistics Assignment Help, MBA Assignment Help, Assignment Writing Service
Associate Website: http://www.helpwiththesis.com