nahsorhseda
Member
- Messages
- 116
- Reaction score
- 0
- Points
- 16
does any one know how to find the square root of a number. with php
for example if i input 25 then i must get the result 5,and if the input is 6(which does not have a s.root),it must echo invalid no.
i hope you understood,i want the script to be simple ,really really simple ,u may use stuff such as if-else ,all 3 loops,dont use anything such as arrays or more complicated stuff
iam going to convert the php script to "c" language ,so if u can write the program directly in c ,i would be really thankfully
the script sounds simple but i wasted nearly 6 hrs but no success,hope some one helps me
(credits=30)
for example if i input 25 then i must get the result 5,and if the input is 6(which does not have a s.root),it must echo invalid no.
i hope you understood,i want the script to be simple ,really really simple ,u may use stuff such as if-else ,all 3 loops,dont use anything such as arrays or more complicated stuff
iam going to convert the php script to "c" language ,so if u can write the program directly in c ,i would be really thankfully
the script sounds simple but i wasted nearly 6 hrs but no success,hope some one helps me
(credits=30)