#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 23 17:30:57 2020 @author: nalshahwan """ #This program calculates the result for a specific operation print("Select Operation") print("1.Add") print("2.Subtract") print("3.Multiply") print("4.Divide") print("5.Modulo") choice = input("Enter Choice(+,-,*,/,%): ") num1 = int(input("Enter first number: ")) num2 = int(input("Enter Second number:")) if choice == '+': print(num1, "+", num2, "=", num1 + num2) elif choice == '-': print(num1, "-", num2, "=", num1 - num2)) elif choice == '*': print(num1, "*", num1, "=", num1 ** num2) elif choice == '/': print(num1, "/", num2, "=", num1/num2) elif choice =="%": print(num2,"%",num2,"=",num1 % num2) else: print("Invalid input")