CodeDrill
day_streak: --
← 問題一覧に戻る
Python ・ Standard I/O

Problem 27: Printing a Multiplication Table Row

An integer N is given on one line from standard input. Print the row of the multiplication table for N, that is, the results from N×1 through N×9, one per line, across 9 lines.

For example, if N is 3, print 9 lines: 3, 6, 9 … up to 27.

Constraints

1 ≤ N ≤ 9

Input example 1

3

Output example 1

3
6
9
12
15
18
21
24
27

Input example 2

1

Output example 2

1
2
3
4
5
6
7
8
9

What you'll train

Specify the output

What you get

  • Specify multi-line output
  • Make the number of outputs explicit
  • Write the line-break format

How to ask the AI

Tell the AI specifically about the output shape: "print N×1 through N×9 one per line, for a total of 9 lines." Making the number of lines and the presence of line breaks explicit prevents the AI from printing everything on one line.

If you ask vaguelyIf the output format is left ambiguous, the AI may combine all 9 values on one line separated by spaces.

あなたのコード

実行しました

プレビュー

AIレビュー(プロンプト練習)

コードはChatGPTやClaudeに出させたものを貼って構いません。
ここでの本番は「次にAIへ出す指示」です。評価軸は1つだけ見て、弱点・指示の穴・改善例を返します。
テストに落ちていてもレビューできます。落ちた理由と、指示に足りなかった情報を結びつけます。

先にコードを実行し、テストを1つ以上通してください。