Computer Science, asked by subhi4170, 11 months ago

Write a program that takes a number and calculate and display the log, square, sin and cosine of it.

Answers

Answered by Abhis506
2

The answer is in the attachment

Attachments:
Answered by Anonymous
2

The program in python language is as follows:

import math

numb = input (“ (enter) ”)  // user gives the input .

print (“The Log value is :  ” math. log ( numb )  // logarithmic value is printed

print (“The Squared value is :  ”, math. pow ( numb , 2)  //squared value  is printed

print (“Here is the Sin value  : ”, math. sin ( numb )  // sine value is printed

print (“The Cosine value is :  ”, math. cos ( numb )  // cosine value is printed

  • In the code above, the package "math" is imported which makes it easier to calculate the log, square, sin and cosine of the number.

Similar questions