Listing 05-02: multiplication tables with nested repeats

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 05\05.02 - multiplication tables with nested repeats.py
# Description: multiplication tables with nested repeats
##############################################################################

table = 1
while table <= 10:
    number = 1
    while number <= 10:
        print(f"{table} x {number} = {table * number}")
        number += 1
    table += 1
Click here to download the file