#include "library.h" void print_in_four_spaces(const int n) { if (n<10) { print(" "); print(n); } else if (n<100) { print(" "); print(n); } else if (n<1000) { print(" "); print(n); } else print(n); } void print_times_table_starting_from(const int which, const int starting_point) { if (starting_point<=12) { print_in_four_spaces(which * starting_point); wait(0.01); print_times_table_starting_from(which, 1 + starting_point); } } void print_times_table(const int which_table) { print_times_table_starting_from(which_table, 1); } void print_times_tables_from(const int first_table) { if (first_table<=12) { print_times_table(first_table); new_line(); print_times_tables_from(first_table + 1); } } void main() { print_times_tables_from(1); }