Skip to content

codeBOX-projects/s-cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

S-Cal

Introduction :

simple calculator program built in python,it can do 7 difference arithmetic operators with two numbers


Install :

First intall requirements:

pip install -r requirements.txt

Run help list :

python3 s_cal.py -h

Or :

python3 s_cal.py --help

output:

█▀ ▄▄ █▀▀ ▄▀█ █░░
▄█ ░░ █▄▄ █▀█ █▄▄

[code]Box - Andrei A. Abd 2022

[*] Introduction:
    simple calculator built in python,it can do 7 difference arithmetic operators with two numbers.

[*] Source: https://github.com/codeBOX-projects

[*] Usage Examples: [First Number] [Arthimetic Operator] [Secon Number]

    > Addition       : 100  +  50
    > Subtraction    : 100  -  50
    > Multiplication : 100  *  50
    > Division       : 100  /  50
    > Modulus        : 100  %  50
    > Exponentiation : 100  ** 50
    > Floor division : 100  // 50
                                 

positional arguments:
  num1        First Number.
  math_value  Arithmetic Operators.
  num2        Second Number.

options:
  -h, --help  show this help message and exit

Usage & Examples :

[First Number] [Arthimetic Operator] [Secon Number]

Examples

  • Addition :

    python3 s_cal.py 100 "+" 50

  • Subtraction :

    python3 s_cal.py 100 "-" 50

  • Multiplication :

    python3 s_cal.py 100 "*" 50

  • Division :

    python3 s_cal.py 100 "/" 50

  • Modulus :

    python3 s_cal.py 100 "%" 50

  • Exponentiation :

    python3 s_cal.py 100 "**" 50

  • Floor division :

    python3 s_cal.py 100 "//" 50

Output :

codeBOX@usr:~/python3 s_cal.py 100 "+" 50

codeBOX@usr:~/[+] Resulte: 150


Support distrebution :

  • Linux os.
  • Termux.

[code]BOX | Andrei A. Abd | 1993 - 2022

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages