Skip to content

AMilkov/PHP-Tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PHP Tests

You have to make a function countones($number)

The parameter is decimal number and the returned result should be the sum of the ones in the representation
of the same number in Binary system.

For example:

countones(7) should return 3 as result
countones(8) should return 1 as result

About

few tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages