Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a script which: Uses the input function to get any number and store it in a variable named my _ number Create a new
Write a script which:
Uses the input function to get any number and store it in a variable named mynumber
Create a new variable named calculation which equals mynumber plus
Multiply calculation by
Subtract from calculation
Divide calculation by
Subtract mynumber from calculation
Print calculation
This should match the output under Desired Output.# Ask users to enter any number
# assign it to the variable mynumber
# Create a new variable called
# calculation that is equal to
# mynumber plus
calculation mynumber
# Multiply calculation by
# Subtract from calculation
# Divide calculation by
# Subtract mynumber from
# calculation
# Print the resulting calculation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started