코딩도장

코딩도장

변경이력

돌아가기
3 2개 문자 추가

2014年05月30日 09:13

이 정우

```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 결과 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 결과 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 결과 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
2 4개 문자 추가 14개 문자 삭제

2014年05月30日 09:12

이 정우

javascript ```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 결과 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
javascript ```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 결과 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
javascript ```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 결과 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
1 Original

2014年05月30日 09:11

이 정우

javascript ```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
javascript ```{.javascript} //javascript function test(a){ return (a.toString().length-1)*(a/10); } //test for (var j=0 ; j<10; j++){ var input = Math.pow(10, j); console.log( "%d -> %d ", input, test( input )) ; } ``` 1 -> 0 10 -> 1 100 -> 20 1000 -> 300 10000 -> 4000 100000 -> 50000 1000000 -> 600000 10000000 -> 7000000 100000000 -> 80000000 1000000000 -> 900000000
코딩도장

코딩도장은 프로그래밍 문제풀이를 통해서 코딩 실력을 수련(Practice)하는 곳입니다.

코딩도장 © 2014 · 문의 [email protected]
피드백 · 개인정보취급방침 · RSS

AltStyle によって変換されたページ (->オリジナル) /