Computer Science, asked by beingsavage, 16 days ago

Write a program in Python to accept 2 integers a and b from user and perform the following operations: (THIS QUESTION WILL GIVE YOU 15 POINTS IF ANSWERED RIGHT)
1)Calculate exponentiation ( a^b)
2)Unary addition on ‘a’ by 3.
3)Binarydivision.
4)Calculate modulus.
PLEASE ANSWER FAST AND ONLY WRITE WHOLE ANSWERS

Answers

Answered by samarthkrv
2

Answer:

import math

a = int(input("Enter a number:"))

b = int(input("Enter another number:"))

print("Exponentiation:",math.pow(a,b))

print("unary addition on",a,"by 3 is",(a+3))

print("Binary division of",a,"and",b,"is",(a/b))

print("After modulus operation:",(a%b))

Explanation:

Mark as brainliest

Similar questions