Python
N = int(input())
for i in range(1,10):
if i < 9:
print(i * N, end=" ")
else:
print(i * N)
PHP
<?php
$N = trim(fgets(STDIN));
for($i=1; $i<=9; $i++){
if($i < 9){
print($i * $N . " ");
} else {
print($i * $N . "\n");
}
}
?>
Python
N = int(input())
result = 1
for i in range(1,N+1):
result =result * 2
print(result)
PHP
<?php
$N = trim(fgets(STDIN));
$result = 1;
for($i=1; $i<=$N; $i++){
$result = $result * 2;
print($result . "\n");
}
?>
Python
for i in range(1,100+1):
if i % 3 == 0 and i % 5 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
PHP
<?php
for($i=1; $i<=100; $i++){
if ($i % 3 == 0 and $i % 5 == 0){
print("FizzBuzz" . "\n");
} elseif ($i % 3 == 0){
print("Fizz" . "\n");
} elseif ($i % 5 == 0){
print("Buzz" . "\n");
} else {
print($i . "\n");
}
}
?>