Coverage for src/km3dq_grl/utils.py: 0%
5 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-18 16:16 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-18 16:16 +0000
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3from .calc import Calculator
6def print_multiplication_table(base):
7 """Prints the multiplication table for a given base"""
8 calculator = Calculator()
9 for i in range(1, 11):
10 print("{} x {} = {}".format(base, i, calculator.multiply(base, i)))