Take a no, eg 9. Square it.
92=81
Now add the digits
8+1= 9 (Which is the original number)
How do I do this using Functions?
It should work for any number. 9, 55, 395 Any.
Type: Posts; User: siddharthbandhu
Take a no, eg 9. Square it.
92=81
Now add the digits
8+1= 9 (Which is the original number)
How do I do this using Functions?
It should work for any number. 9, 55, 395 Any.
That was just an example. No way related to the program above.
Im just happy that it will work, thanks alot!
For example, if I declare an int n, is it possible to :
Math.pow (5,n+2) ;
Just this one doubt please help me!
Ok, nevermind.
For example, if I declare an int n, is it possible to :
Math.pow (5,n+2) ;
Just this one doubt please!
Im using Blue J for Java. Please help me on how to write the program for 1+1!+1/2!+1/3!+ .... 1/N! in Java.
Thank you.
I would also appreciate if you could help me for:
2) x- x^2/2! +...