diff --git a/README.md b/README.md index 0cd6843..60ce56b 100644 --- a/README.md +++ b/README.md @@ -19,17 +19,18 @@ A simple python program to do basic calcuation from cli !! #### Overview #### The program prompts for user entry asking for the type of calculation they would want to execute. A menu will be verbosed for user to freely choose. From there individual instructions such as "Enter 1st no to add" is carried out for the user. +A statement based input feature has been implemented on main. ## Features Currently planned features: -1. Basic Arithmetics -1. Integer Arithmetics -1. Statement based input -1. Equation support (?) -1. Unequal support (?) -1. Negative/Imaginary support (?) +* Basic Arithmetics +* Integer Arithmetics +* Statement based input +* Equation support (?) +* Unequal support (?) +* Negative/Imaginary support (?) ### Basic Arithmetics diff --git a/calc_main.py b/calc_main.py index a5e8f2e..7404aa3 100755 --- a/calc_main.py +++ b/calc_main.py @@ -72,8 +72,12 @@ def divide(): c = div(a, b) print("division is:", c) return - #def floor_division(): - + def floor_division(): + a = int(input("enter 1st no to perform floor division:")) + b = int(input("enter 2nd no to perform floor division:")) + c = a // b + print("floor division is:",c) + return def factorial(): num = int(input("enter a number: ")) if num < 0: