Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Get user input for the first integer user _ num = int ( input ( Enter integer: ) ) # Task 1
# Get user input for the first integer
usernum intinputEnter integer:
# Task : Output the user's input
printYou entered:", usernum
# Task : Output the input squared and cubed
squared usernum usernum
cubed usernum usernum usernum
printusernum, "squared is squared
printAnd usernum, "cubed is cubed,
# Get user input for the second integer
usernum intinputEnter another integer:
# Task : Output the sum and product of the two integers
sumresult usernum usernum
productresult usernum usernum
printusernum, usernumis sumresult
printusernum, usernumis productresult
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