- 3
Write a program that gives us no. Of 1's and 0's when we enter a decimal no?
Output pleas enter no= 7 no.of 1's= 3 no. of 0's=2
2 Antworten
+ 3
I would get the binary number of it, convert it to a string and in a for loop, count 0's and 1's.
- 1
please write your coding here it's challenge for MR. and number should be given by the user ok