Question: The inverse of input _ width is 1 / input _ width. The following program intends to read a floating - point value from input,
The inverse of inputwidth is inputwidth. The following program intends to read a floatingpoint value from input, compute the inverse of the value, and output the inverse, but the code contains an error. Find and fix the error.
Ex: If the input is then the output is:
The inverse of width
# Modify the following code
inputwidth int input
widthinverse inputwidth
print The inverse of width inputwidth: :nverse:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
