Friday, 17 February 2017

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 : 

Square and Cube of a given number

Q : Write a program to calculate of square and cube of a given number ?

Solution :