Assignment 07
Assignment 07
Assignment No. : 07
PROBLEM STATEMENT: To accept the number and Compute:
a) square root of number
b) Square of number
c) Cube of number
d) check for prime
d) factorial of number
e) prime factors
OBJECTIVE:
THEORY:
1) Explain the mathematical operations implemented in the program and their significance
in computational problems.
2) What is the algorithm used to check whether a number is prime in the program?
3) What are the limitations of the factorial function implementation in the program?
PLATFORM: Linux
INPUT:
OUTPUT:
FAQs:
2. State any four C header files and write down its use.