MAKING CALCULATOR USING PHYTHON

#-------------------------------------------------------------------------------
# Name:    MAKIMG CALCULATOR USING PHYTHON
# Purpose:PROJECT 1(PHYTHON)
#
# Author:      DEBADATTA PARIDA
#
# Created:     01-08-2023
# Copyright:   (c) ACER 2023
# Licence:     <your licence>
#-------------------------------------------------------------------------------
first = input("enter first number:")
operator = input("enter operator (+,-,*,/,%) :")
second = input("enter second number:")
first=int(first)
second=int(second)
if operator== "+":
    print(first+second)


elif operator== "-":
    print(first-second)



elif operator== "*":
print(first*second)


elif operator== "/":
    print(first/second)



elif operator== "%":
    print(first%second)
else:

    print("invalid") 

Comments

Popular posts from this blog

AMAZON HOME PAGE CLONE PROJECT

Array in Javascript

Array in function Javascript