Times

24px-Disambig_grey.svg.png 다른 뜻에 대해서는 타임스 문서를 참조하십시오.

1 PHP[편집]

<?php
$x = 100;
foreach(range(1,3) as $i) { $x++; }
echo $x; # 103
<?php
for($i=0;$i<3;$i++) { print "Hello!"; }
# Hello!Hello!Hello!

2 Python[편집]

x = 100
for i in range(3): x+=1
print( x )
# 103
for i in range(3): print( 'Hello!', end='' )
# Hello!Hello!Hello!
print("Hello!" * 3)
# Hello!Hello!Hello!

3 Perl[편집]

print "Hello!" x 3;
# Hello!Hello!Hello!

4 Ruby ★[편집]

x = 100;
3.times { x+=1 }
print x
# 103
3.times { print "Hello!" }
# Hello!Hello!Hello!

5 같이 보기[편집]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}