In-built string functions
-
Absolute
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = abs(y)
-
-
Power
-
Declare integers x,y and z
-
Take input for x, y
-
Choose assignment block and write the code
z = pow(x,y)
-
-
Square Root
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = sqrt(y)
-
-
Signum
- Declare integers x, y
- Take input for x, y
- Choose assignment block and write the code
x = sgn(y)
-
Natural Log
- Declare integers x, y
- Take input for x, y
- Choose assignment block and write the code
x = ln(y)
-
Log
-
Declare integers x,y and z
-
Take input for x, y
-
Choose assignment block and write the code
z = log(x,y)
-
-
Sin
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = sin(y)
-
-
Cos
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = cos(y)
-
-
Tan
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = tan(y)
-
-
Arcsin
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = arcsin(y)
- Arccos
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = arccos(y)
- Arctan
-
Declare integers x, y
-
Take input for x, y
-
Choose assignment block and write the code
x = arctan(y)
- Ceil
-
Declare integer x, float y
-
Take input for x, y
-
Choose assignment block and write the code
x = ceil(y)
- Floor
-
Declare integers x, float y
-
Take input for x, y
-
Choose assignment block and write the code
x = floor(y)
- Round
-
Declare integers x, float y
-
Take input for x, y
-
Choose assignment block and write the code
x = round(y)
-
Second parameter denotes number of digits after floating point
- Random
- Declare integers x, y
- Take input or assign value for y
- Choose assignment block and write the code
x = random(y)