Number Programming C Language

Number Programming C Language


  1. Write a program to check whether a number is prime or not?
  2.  Write a program to input two number and check whether its is twin prime number or not?

    Explanation :

    A number said to be twin prime if given number gap is 2 and it is prime number

                                               Twin Prime Number
  3. Explanation : Two Number said to be twisted twin prime number if gap between given number is 2 and Prime, Reverse prime
    Ex :  11-13

  4. Write a program to calculate Armstrong number?
    A number said to Armstrong if sum each with is same as given number
    153 =1*1*1+5*5*5*+3*3*3=153
  5. Write a program to check whether a number is palindrome?
    A number said to palindrome if reverse of each digit is same as input number
    e.g.  17371=17371
  6. Write a program to check whether a number is Magic number or not ?
  7. Write a program to check Strong number?


Home

No comments:

Post a Comment