0

Create a PHP Program that accepts a number and tells how many times does a number can be divided to 2.

Please help me with this. Frontend- html Backend-PHP

30th Jan 2021, 10:46 AM
Reymart Selverio
Reymart Selverio - avatar
3 Antworten
+ 1
You need help in what exactly,logic? all you need to do is keep dividing the number untill number<2 and count while doing it
30th Jan 2021, 11:31 AM
Anastacia Ru
Anastacia Ru - avatar
+ 1
Perhaps you were looking for `intdiv` function, https://www.php.net/manual/en/function.intdiv.php
30th Jan 2021, 11:57 AM
Ipang
+ 1
Reymart Selverio It seems your question appears to be an assignment. Please show us your attempt and use the 8 rules to get help from the community. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community *can be a code coach solution which is meant for you to do to help you establish your skills abilities and where you need to learn... not the community *one issued by a school or other institution *one issued or created by another platform *one that appears to be in the form of a challenge that was created by you or somewhere else. Your question will be reviewed by a team of moderators and will most likely be marked for deletion. https://www.sololearn.com/Discuss/1316935/?ref=app
6th Feb 2021, 10:50 PM
BroFar
BroFar - avatar