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. 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. Link to comment https://forums.phpfreaks.com/topic/285259-php-codes-needed/#findComment-1464713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.