Skip to content

Instantly share code, notes, and snippets.

@xlab
Created December 17, 2011 15:50
Show Gist options
  • Save xlab/1490546 to your computer and use it in GitHub Desktop.
Save xlab/1490546 to your computer and use it in GitHub Desktop.
Multiply table
<?foreach(range(1,10) as $i){foreach(range(1,10) as $j){print ($i*$j).($j%10?" ":"\n");}}?>
можешь быстро накатать программу для вывода таблице умножения:вот прмиерно такую искинуть код
От mendab1e руби:
(1..10).each{|y| p (1..10).map{|x| x*y}}
//по мотивам http://cl.ly/Chfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment