Jenny_Viray Posted January 10, 2014 Share Posted January 10, 2014 create a php scripts for the following: 1.) a script that will display the factorials of a given/assigned number. 2.) a script that will display if the assigned number is perfect, abundant or defect. 3.) a script that will reduce every assigned number to 1. 4.) generate an output format of: 1 12 123 1234 and so on 5.) generate an output format of: 1 22 333 4444 and so on.. hope you could help me on this. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/285259-php-codes-needed/ Share on other sites More sharing options...
Barand Posted January 10, 2014 Share Posted January 10, 2014 We are not going to do your assignment for you. Google "recursion" - the usual example given is factorials. Ditto factorizing numbers. For the last one use a couple of nested for() loops. Quote Link to comment https://forums.phpfreaks.com/topic/285259-php-codes-needed/#findComment-1464713 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.