Sep 3, 2024
printf
function to print text on the screen.
stdio.h
header file.scanf
is also a standard library function from stdio.h
.math.h
: Contains mathematical functions.
sqrt
: Computes the square root of a number.cbrt
: Computes the cube root of a number.pow
: Computes the power of a number.math.h
Square Root Example:
math.h
num
and assign value 25.printf
with sqrt(num)
.Cube Root Example:
num
to 27 and use cbrt(num)
.Power Calculation Example:
a
(value 5) and b
(value 2).pow(a, b)
to get 5 raised to the power of 2.b
to 3 for output 125.toupper
: Converts character to uppercase.tolower
: Converts character to lowercase.sqrt
function.pow
function.