Friday, 17 February 2017

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 : 

Even Odd Calculation

Q : Write a program to sum all even and odd number from 1 to given number ?

Solution :