Listing 05-03: multiplication tables without nested loops

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

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