Question: Write a program that takes two numbers. Get the first number as an integer and the second one as a float number. Then, compute the

Write a program that takes two numbers. Get the first number as an integer and the second one as a float number. Then, compute the following expressions: number1//2, number1/number2, number1*number2, and 3**number2. Display the result and type of each expression. (Should use type function to get the type of each expression)
Input:
python C:\Users
eda\DataProgramming\M1\assign1-5.py 1712
Output:
Number1 is 17
Number2 is 12.0
17//2=8,
17/12.0=1.4166666666666667,
17*12.0=204.0,
3**12.0=531441.0,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!