C Programming - Assignment - 5
Assignment - 5
-------------------
- Write a program to input a number and print it’s all the factor
- Write a program to input a number and print all its non factors
- Write a program to input a number and count the number of factors of the number
- Write a program to input a number and check it is a prime number or not
- 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
- Write a program to input a number and check whether the number is a perfect number or no
- Write a program to input a number and find the difference of the sums of its factors and non factors.
- Write a program to input a three digit number and find the sum of the digits [ say n= 456 then answer : 15 ]
- Write a program to input any digit number and find the sum of the digits.
- Write a program to input any digit number and then reverse the digit [ say n=567 then y=765]
- Write a program to input the base and power value and calculate the answer [ say 23 = 2x2x2 = 8 ]
- Write a program to input two numbers and find the HCF of the numbers
Comments
Post a Comment