Function multi_table

Source
pub fn multi_table(n: u64) -> String
Expand description

Your goal is to return multiplication table for number that is always an integer from 1 to 10.

§Example

multi_table(5)
returns “1 * 5 = 5\n2 * 5 = 10\n3 * 5 = 15\n4 * 5 = 20\n5 * 5 = 25\n 6 * 5 = 30\n7 * 5 = 35\n8 * 5 = 40\n9 * 5 = 45\n10 * 5 = 50”