Friday 17 February 2017

Least Common Multiple

Q : Write a program to input two numbers and find out Least Common Multiple?

The smallest positive number that is a multiple of two or more numbers.

Solution : 

/*   ################################
     Girfa Student Help
     LCM
     for more visit : http://girfahelp.blogspot.in/p/c-language.html
     ################################

Greatest Common Factor

Q : Write a program to calculate Greatest Common Factor ?

The highest number that divides exactly into two or more numbers. It is the "greatest" thing for simplifying fractions!
Greatest Common Factor of 12 and 16 is 4 because after 4 there is not any number which devide both 12 and 16.

Solution : 


/*   ################################
     Girfa Student Help
     HCF
     for more visit : http://girfahelp.blogspot.in/p/c-language.html
     ################################

Perfect Number C Language Program

Q: Write a program to check whether a number is prime or not?
(A number said to be perfect if sum of all factor less than given number then equal to given number)Input : 6

Solution : 

/*   ################################
     Girfa Student Help
     Perfect Number
     for more visit : http://girfahelp.blogspot.in/p/c-language.html
     ################################
*/
#include<stdio.h>

Thursday 16 February 2017

Product of digit

Q : Write a program to calculate product of digit of a given page ?

Solution :