Question: Write a python program to accept a number and if the number is even calculate Z=y modulus x, by taking x and y input from
Write a python program to accept a number and
if the number is even calculate Z=y modulus x, by taking x and y input from user
If number is positive calculate Z=y to the power x, by taking x and y input from user
If the number is equal to 0 calculate Z=x to the power y, by taking x and y input from user
If number is in between 1 and 10 calculate Z=(x+y)/2, by taking x and y input from user
Otherwise display Invalid Input
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
