Browse Source

fix added smaller equal sign in loop head

remotes/origin/conversionOfNumbers
Laurin 11 months ago
parent
commit
aa2e397bec
  1. 2
      src/conversionOfNumbers/conversionOfNumbers.c

2
src/conversionOfNumbers/conversionOfNumbers.c

@ -7,7 +7,7 @@
int binaryStrLen(int input){
int length;
if(input > 0){
for(int x = 0; x < input; x++){
for(int x = 0; x <= input; x++){
if(pow(2,x) >= input + 1){
length = x;
break;

Loading…
Cancel
Save