C Programming - Assignment - 5

 Assignment - 5

-------------------

  1. Write a program to input a number and print it’s all the factor
  2. Write a program to input a number and print all its non factors
  3. Write a program to input a number and count the number of factors of the number
  4. Write a program to input a number and check it is a prime number or not
  5. Write a program to input a number and print its multiplication table. For example if the number is 2 , multiplication table would be 2, 4, 6, 8, 10, 12, 14, 16, 18 , 20
  6. Write a program to input a number and check whether the number is a perfect number or no
  7. Write a program to input a number and find the difference of the sums of its factors and non factors.
  8. Write a program to input a three digit number and find the sum of the digits [ say n= 456 then answer : 15 ]
  9. Write a program to input any digit number and find the sum of the digits.
  10. Write a program to input any digit number and then reverse the digit [ say n=567 then y=765]
  11. Write a program to input the base and power value and calculate the answer [ say 23 = 2x2x2 = 8 ]
  12. Write a program to input two numbers and find the HCF of the numbers


Comments