<?php

// Leia 1 valor inteiro N (2 < N < 1000). A seguir, mostre a tabuada de N:      
// 1 x N = N      2 x N = 2N        ...       10 x N = 10N
// Entrada

// A entrada contém um valor inteiro N (2 < N < 1000).
// Saída

// Imprima a tabuada de N, conforme o exemplo fornecido.

$number = intval(trim(fgets(STDIN)));

if($number > 2 || $number < 1000){
    for ($i=1;$i <=10 ; $i++ ) {
        echo "{$i} x {$number} = ". $i * $number . PHP_EOL;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: