Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on List of C Programs Needed within the C and C++ forums, part of the Software Development category; Hi, I need to write a C program for the list of questions attached. Since i dont have much knowlege on C, i request anyone's help in this. Thanks in ...
|
|||||||
|
|||
|
List of C Programs Needed
Hi,
I need to write a C program for the list of questions attached. Since i dont have much knowlege on C, i request anyone's help in this. Thanks in advance! Regards, Siva.N |
| Sponsored Links |
|
|||
|
Re: List of C Programs Needed
hello,
You have mistaken me. Actually, these are the questions i came across when i went through a book related to mathematics formulas solved using c languagae. When i read those questions, i got confused and post that as a thread. Probably, my words may confused you. But anyway, now i solved some. Thanks. |
|
|||
|
Re: List of C Programs Needed
Good that you were able to solve the questions. Now you must be having much more knowledge of C, as it should have definitely improved.
Regarding somebody misunderstanding you, it all starts how the words are phrased and what meaning they suggest to the reader. |
|
|||
|
Re: List of C Programs Needed
hi...
can any one help me out with the following program LCM and HCF on 'n' numbers( without using array)? if possible please mail me at srivastavarupal@gmail.com Thanks waiting for the answer. Last edited by srivastavarupal; 09-25-2009 at 09:46 AM. Reason: email id |
|
|||
|
Re: List of C Programs Needed
you can find gcd and lcm using
gcd*lcm=product of numbers i found gcd using euclid algorithm and than find lcm ******************************** #include<stdio.h> #include<conio.h> int main(){ int n,m,lcm,gcd,r; clrscr(); printf("Enter the two number in decresing order\n"); printf("enter first no:\n"); scanf("%d",&m); printf("enter the second no :\n"); scanf("%d",&n); a=m; b=n; while(n>0){ r=m%n; m=n; n=r; } gcd=m; printf("GCD :=%d\n",gcd); lcm=(a*b)/gcd; printf("LCM :=%d",lcm); getch(); return 0; } ****************************************** Last edited by sumitsolution; 3 Weeks Ago at 07:59 AM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help needed recording a drop down list and inputting data. | 172v6 | QTP | 1 | 07-28-2008 08:11 AM |
| Overloading Sub Programs. | babi_geek | Oracle | 2 | 06-09-2008 06:17 AM |
| Execute two detail list from a basic list at same time | Geek_Guest | SAP R/3 | 0 | 06-26-2007 07:34 AM |
| JDK 1.4 programs on JDK6 | JobHelper | Java | 1 | 12-15-2006 05:58 AM |
| Graphics Programs | Remasri | Windows | 1 | 09-13-2006 02:14 PM |