0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

九九表 Python3編

0
Posted at

これ自体は前回もやったけども

今回は配列を使うってことで
違う方法で。
もっとも答えは配列を使っていない前回と同じ方法だったが。。。

A = [i for i in range(1,10)]
B = [i for i in range(1,10)]
for i in A:
    for j in B:
        if j >= 9:
            print(A[i-1] * B[j-1])
        else:
            print(A[i-1] * B[j-1],end=" ")

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?