Skip to content

Rono405/Python-Assignment.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Basic calculator program

operator = input("Enter the operator (+ - * /): ") num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: "))

if operator == "+": print(num1 + num2) elif operator == "-": print(num1 - num2)
elif operator == "*": print(num1 * num2)
elif operator == "/": print(num1 / num2) else: print(f"{operator} is not valid a operator")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published