Skip to content

wide usage command based calculator app with features from addition to permutations and combinations

Notifications You must be signed in to change notification settings

Bitskiwi/calc.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

calc.c

wide usage command based calculator app with features from addition to permutations and combinations

syntax

  • ./calc str float float

commands

  • add
    • add two numbers
    • ./calc add 3 3 >>> 6
  • sub
    • subtract two numbers
    • ./calc sub 3 3 >>> 0
  • mul
    • multiply two numbers
    • ./calc mul 3 3 >>> 9
  • div
    • divide two numbers
    • ./calc div 3 3 >>> 1
  • exp
    • find the value of a number after applying an exponent
    • ./calc exp 3 3 >>> 27
  • rand
    • generate a random number within a certain range
    • ./calc rand 1 10 >>> 6.1346
    • ./calc rand 1 10 >>> 3.2342
    • ./calc rand 1 10 >>> 5.3254
  • percof
    • find what percentage a number is of another number
    • ./calc percof 3 3 >>> 100
  • fact
    • find the factorial of a number
    • ./calc fact 3 >>> 6
  • perm
    • find the permutations of two numbers for probability
    • ./calc perm 3 3 >>> 6
  • comb
    • find the combination of two numbers for probability
    • ./calc add 3 3 >>> 1

About

wide usage command based calculator app with features from addition to permutations and combinations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published