{ "cells": [ { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "B\n", "B*1=B\n", "B*2=16\n", "B*3=21\n", "B*4=2C\n", "B*5=37\n", "B*6=42\n", "B*7=4D\n", "B*8=58\n", "B*9=63\n", "B*A=6E\n", "B*B=79\n", "B*C=84\n", "B*D=8F\n", "B*E=9A\n", "B*F=A5\n" ] } ], "source": [ "num = int(input(),16)\n", "\n", "for i in range(1, 16) :\n", " print(\"%X*%X=%X\" %(num, i, num*i))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 2 }