Skip to content

Commit

Permalink
Merge pull request #13 from PaprikaX33/chil
Browse files Browse the repository at this point in the history
Floor division function
  • Loading branch information
roidsaja authored Oct 14, 2019
2 parents 8f98031 + 83488c4 commit 9287b55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 6 additions & 2 deletions calc_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9287b55

Please sign in to comment.