PHP Tutorial // Calculator
Loading...
51,217
Loading...
Uploader Comments (lifeg0eson666)
Top Comments
-
ok first of all you don't need so many things to make a calculator.second:guys if you copy what he writes in notepad that doesn't make you a programmer.I know that my comment will be rated with "-" and so on but that's my opinion :D
-
very nice ty but kind of hard to see(zoom in more or try another prog) and a bit difficult to understand(background)
see all
All Comments (90)
-
Cool :D
BTW: what are the thingys you type after the add and mul?
it's a ")" and after it the screen is too blurry for me to regonise.
*Wishes you can put stuff up in HD sometime*
I am such a noob lol.
-
-
@iamanending 8 year olds don't write very good tutorials.
-
@TheGroovyChili word. that way there won't even need to be page loads.
-
can't see what you are typing >:(
Loading...
dude can u make one that counts powers????
that wud be awesome....
Mathrixxx99 2 years ago
just use pow(base,exponent)
lifeg0eson666 2 years ago
@lifeg0eson666
No.
function pow(base, exponent)
{ if (exponent <= 1) return base; else return base * pow(base, exponent-1);
}
sharpnova2 1 year ago
@sharpnova2 Mathematically that's wrong. If you wanted pow(10,0) your "function" would return 10, where it should return 1. n^0 = 1.
lifeg0eson666 1 year ago
@lifeg0eson666 meant to say if (exponent == 0) return 1;
sharpnova2 1 year ago
@sharpnova2 Fair enough. But this tutorial is four years old, I didn't know as much as I do now.
lifeg0eson666 1 year ago