cat("\f")
# Q-1 Assign the value of 44 to x
x=44

# Q-2 Assign the value of 20 to y
y=20

# Q-3 Make z the value of x – y, and display z.
z=x-y
cat ("Value of z is ", z ,"\n\n")
## Value of z is  24
# Q-4 Calculate the square root of 2345, 
#     and perform a log2 transformation on the result.
a=sqrt(2345)
cat ("Square root of 2345 is ", a ,"\n\n")
## Square root of 2345 is  48.4252
b=log2(a)
cat ("log2 of Square root of 2345 is ", b ,"\n\n")
## log2 of Square root of 2345 is  5.597686
# Q-5.  Calculate the 10-based logarithm of 100, 
# and multiply the result with the cosine of π.
a=log10(100)
cat ("10-based logarithm of 100 is ", a ,"\n\n")
## 10-based logarithm of 100 is  2
b=a*cos(pi)
cat ("Multiple of 10-based logarithm of 100 with the cosine of π is ", b ,"\n\n")
## Multiple of 10-based logarithm of 100 with the cosine of π is  -2