English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

c program

2006-11-13 00:05:05 · 3 answers · asked by raghava_rss 1 in Computers & Internet Programming & Design

3 answers

You typed your question as if you're asking a search engine rather than a real person :-) Please elaborate. I'm guessing you want a C program that find least and greatest common denominator for a given number?

2006-11-13 00:13:17 · answer #1 · answered by IT Pro 6 · 0 0

You will find out gcd by simple procedure. Subtract the small number from the greater number. Continue doing this untill youe two numbers are same or you get 1. In first case, the nmuber is your gcd, in second case, 1 is gcd.
Once you get gcd, finding lcd is one step.
number1 * number2/gcd will give you lcd.

2006-11-14 21:55:53 · answer #2 · answered by manoj Ransing 3 · 0 0

this should help you out:
http://www.boost.org/libs/math/doc/common_factor.html

2006-11-13 01:23:11 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers