An open API service indexing awesome lists of open source software.

https://github.com/hacimertgokhan/calculator

Calculator project, I did that on my free time.
https://github.com/hacimertgokhan/calculator

calculator html-calculator javascript-calculator simple-calculator-js

Last synced: 7 months ago
JSON representation

Calculator project, I did that on my free time.

Awesome Lists containing this project

README

          

About Project


In that project, I did a simple calculator can do Sqrt, Any power of number, And factorial stuff.

Some methods

Factorial

```

// Factorial
const number = result.innerHTML;
let a = 1;
for(let i = 1; i<=number; i++) {
a = (a*i);
}
result.innerHTML = `${a}`;

```

Power of Number

```

// Pofn
let a = prompt('What power of the number do you want to get?');
let num = Number(a);
let b = Math.pow(result.innerHTML, num);
result.innerHTML = `${b}`;

```

Sqrt

```

// Sqrt
const problem = result.innerHTML;
let a = Math.pow(problem, 2);
result.innerHTML = `${a}`;

```

Image(s)

![resim_2023-10-21_104132148](https://github.com/hacimertgokhan/Calculator/assets/64479768/f606e046-2110-44f9-b1e2-cde89d3552a9)

# Forks

[Developed by CParthur1](https://github.com/cparthur1/iOSCalc_Replacer)