Checkpoint: multiplication table
Challenge on lesson: Checkpoint: loops
CHALLENGE
Difficulty: beginner+25 XP
Implement String timesTable(int n): return n lines; line k (1-based) contains the products k*1, k*2, ..., k*n separated by single spaces, and ends with \n. timesTable(3) starts "1 2 3\n2 4 6\n3 6 9\n".
Press Submit to check your solution.
Back to lesson: Checkpoint: loops