Sharing Knowledge

Saturday, August 16, 2008

ISC 2006 HCF and LCM through Recursion

Link for Downloading Full Program C++ version

int rechcf(int p,int q)
{
      if(p==0) return q;
           else return rechcf(q%p, p);
}  
int fn_lcm(int p,int q, int gcd)
{
            return p*q/gcd;
}
Posted by Unknown at 10:08 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

My Favourite Shopping site



ICSE - Learning Computer Application

ISC - Learning Computer Science

Blog Archive

  • ►  2013 (8)
    • ►  February (8)
  • ►  2012 (10)
    • ►  March (1)
    • ►  February (9)
  • ►  2011 (11)
    • ►  February (9)
    • ►  January (2)
  • ►  2009 (4)
    • ►  September (2)
    • ►  August (1)
    • ►  January (1)
  • ▼  2008 (8)
    • ►  September (1)
    • ▼  August (6)
      • ISC 2008 Reverse a string to check Palindrome thro...
      • ISC 2007 Decimal to Binary conversion through Recu...
      • ISC 2007 Digit to word conversion through Recursion
      • ISC 2006 HCF and LCM through Recursion
      • ISC 2005 Fibonacci Series through Recursion
      • QUESTION BASED ON RECURSIONQues 1. A class Revstr ...
    • ►  July (1)

Google Search

Google
Custom Search

About Me

Unknown
View my complete profile
Simple theme. Theme images by luoman. Powered by Blogger.