Computer Science, asked by kripa1048, 9 months ago

Write a Python program for the following :
-Program that prompts user to input a number and display if the number is even or odd.
-Program that prompts user to input 2 integers and outputs the largest.
-Program that asks user for 2 numbers and prints "close" if numbers are within .001 of each other and "Not Close" otherwise
-Program that prompts user to input a number and program should display corresponding days to the number.Eg.If user types 1 output should be sunday.If user types 7,output should be saturday

Answers

Answered by avinash9631
1

Answer:

We can also square a number with the math.pow() function. That function accepts the same arguments, but returns a floating-point value each time. So math.pow(3, 2) gives 9.0 rather than 9.

Similar questions