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?
  8. Write a C Program using function to print equivalent binary number of decimal number input by keyboard?
  9. Write a C Program to print and count all numbers between 1 to 100 divisible by 11.
  10. Write a program to  print  all prime numbers from  1  to  100. Use nested loops, break or continue statement wherever necessary.
  11. Write a program to find the sum of the digits of a number.



Back to programming Home

No comments:

Post a Comment