Write the code for the following programs using Script Mode
1. Write a program to input two numbers from the user and print addition, subtraction,
multiplication, division, find remainder when one is divided by other. Perform integer
division
Answers
Answered by
0
Answer:
this ans you will get in brainliest
Answered by
1
num_1 = int(input("Enter num 1: "))
num_2 = int(input("Enter num 2: "))
info = {
"addition": num_1 + num_2,
"subtraction": num_1 - num_2,
"multiplication": num_1 * num_2,
"division": num_1 / num_2,
"remainder": num_1 % num_2
}
[print(f"{k}: {v}") for k, v in info.items()]
# above solution is in python 3
Similar questions